This project has retired. For details please refer to its Attic page.
FilterFn.OrFn (Apache Crunch 0.6.0 API)

org.apache.crunch
Class FilterFn.OrFn<S>

java.lang.Object
  extended by org.apache.crunch.DoFn<T,T>
      extended by org.apache.crunch.FilterFn<S>
          extended by org.apache.crunch.FilterFn.OrFn<S>
All Implemented Interfaces:
Serializable
Enclosing class:
FilterFn<T>

Deprecated. Use FilterFns.or(FilterFn...)

public static class FilterFn.OrFn<S>
extends FilterFn<S>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.crunch.FilterFn
FilterFn.AndFn<S>, FilterFn.NotFn<S>, FilterFn.OrFn<S>
 
Constructor Summary
FilterFn.OrFn(FilterFn<S>... fns)
          Deprecated.  
 
Method Summary
 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.
 
Methods inherited from class org.apache.crunch.FilterFn
and, cleanup, not, or, process
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterFn.OrFn

public FilterFn.OrFn(FilterFn<S>... fns)
Deprecated. 
Method Detail

configure

public void configure(org.apache.hadoop.conf.Configuration conf)
Deprecated. 
Description copied from class: DoFn
Configure this DoFn. Subclasses may override this method to modify the configuration of the Job that this DoFn instance belongs to.

Called during the job planning phase by the crunch-client.

Overrides:
configure in class DoFn<S,S>
Parameters:
conf - The Configuration instance for the Job.

setContext

public void setContext(org.apache.hadoop.mapreduce.TaskInputOutputContext<?,?,?,?> context)
Deprecated. 
Description copied from class: DoFn
Called during setup to pass the TaskInputOutputContext to this DoFn instance.

Overrides:
setContext in class DoFn<S,S>

initialize

public void initialize()
Deprecated. 
Description copied from class: DoFn
Initialize this DoFn. This initialization will happen before the actual DoFn.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.

Overrides:
initialize in class DoFn<S,S>

cleanup

public void cleanup()
Deprecated. 
Description copied from class: FilterFn
Called during the cleanup of the MapReduce job this FilterFn is associated with. Subclasses may override this method to do appropriate cleanup.

Overrides:
cleanup in class FilterFn<S>

accept

public boolean accept(S input)
Deprecated. 
Description copied from class: FilterFn
If true, emit the given record.

Specified by:
accept in class FilterFn<S>

scaleFactor

public float scaleFactor()
Deprecated. 
Description copied from class: DoFn
Returns an estimate of how applying this function to a PCollection 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.

Overrides:
scaleFactor in class FilterFn<S>


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.