public static class FilterFn.NotFn<S> extends FilterFn<S>
FilterFn.AndFn<S>, FilterFn.NotFn<S>, FilterFn.OrFn<S>| Constructor and Description |
|---|
FilterFn.NotFn(FilterFn<S> base)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(S input)
Deprecated.
If true, emit the given record.
|
void |
cleanup()
Deprecated.
Called during the cleanup of the MapReduce job this
FilterFn is
associated with. |
void |
configure(org.apache.hadoop.conf.Configuration conf)
Deprecated.
Configure this DoFn.
|
void |
initialize()
Deprecated.
Initialize this DoFn.
|
float |
scaleFactor()
Deprecated.
Returns an estimate of how applying this function to a
PCollection
will cause it to change in side. |
void |
setContext(org.apache.hadoop.mapreduce.TaskInputOutputContext<?,?,?,?> context)
Deprecated.
Called during setup to pass the
TaskInputOutputContext to this
DoFn instance. |
public void configure(org.apache.hadoop.conf.Configuration conf)
DoFnCalled during the job planning phase by the crunch-client.
public void setContext(org.apache.hadoop.mapreduce.TaskInputOutputContext<?,?,?,?> context)
DoFnTaskInputOutputContext to this
DoFn instance.setContext in class DoFn<S,S>public void initialize()
DoFnDoFn.process(Object, Emitter) is triggered. Subclasses may override
this method to do appropriate initialization.
Called during the setup of the job instance this DoFn is associated
with.
initialize in class DoFn<S,S>public void cleanup()
FilterFnFilterFn is
associated with. Subclasses may override this method to do appropriate
cleanup.public boolean accept(S input)
FilterFnpublic float scaleFactor()
DoFnPCollection
will cause it to change in side. The optimizer uses these estimates to
decide where to break up dependent MR jobs into separate Map and Reduce
phases in order to minimize I/O.
Subclasses of DoFn that will substantially alter the size of the
resulting PCollection should override this method.
scaleFactor in class FilterFn<S>Copyright © 2013 The Apache Software Foundation. All Rights Reserved.