com.cloudera.crunch.fn
Class CompositeMapFn<R,S,T>

java.lang.Object
  extended by com.cloudera.crunch.DoFn<S,T>
      extended by com.cloudera.crunch.MapFn<R,T>
          extended by com.cloudera.crunch.fn.CompositeMapFn<R,S,T>
All Implemented Interfaces:
Serializable

public class CompositeMapFn<R,S,T>
extends MapFn<R,T>

See Also:
Serialized Form

Constructor Summary
CompositeMapFn(MapFn<R,S> first, MapFn<S,T> second)
           
 
Method Summary
 MapFn<R,S> getFirst()
           
 MapFn<S,T> getSecond()
           
 void initialize()
          Called during the setup of the MapReduce job this DoFn is associated with.
 T map(R input)
          Maps the given input into an instance of the output type.
 
Methods inherited from class com.cloudera.crunch.MapFn
process, scaleFactor
 
Methods inherited from class com.cloudera.crunch.DoFn
cleanup, configure, getConfiguration, getCounter, getCounter, getStatus, getTaskAttemptID, progress, setConfigurationForTest, setContext, setStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeMapFn

public CompositeMapFn(MapFn<R,S> first,
                      MapFn<S,T> second)
Method Detail

initialize

public void initialize()
Description copied from class: DoFn
Called during the setup of the MapReduce job this DoFn is associated with. Subclasses may override this method to do appropriate initialization.

Overrides:
initialize in class DoFn<R,T>

getFirst

public MapFn<R,S> getFirst()

getSecond

public MapFn<S,T> getSecond()

map

public T map(R input)
Description copied from class: MapFn
Maps the given input into an instance of the output type.

Specified by:
map in class MapFn<R,T>


Copyright © 2012. All Rights Reserved.