com.cloudera.crunch.fn
Class PairMapFn<K,V,S,T>
java.lang.Object
com.cloudera.crunch.DoFn<S,T>
com.cloudera.crunch.MapFn<Pair<K,V>,Pair<S,T>>
com.cloudera.crunch.fn.PairMapFn<K,V,S,T>
- All Implemented Interfaces:
- Serializable
public class PairMapFn<K,V,S,T>
- extends MapFn<Pair<K,V>,Pair<S,T>>
- See Also:
- Serialized Form
Method Summary |
void |
initialize()
Called during the setup of the MapReduce job this DoFn
is associated with. |
Pair<S,T> |
map(Pair<K,V> input)
Maps the given input into an instance of the output type. |
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 |
PairMapFn
public PairMapFn(MapFn<K,S> keys,
MapFn<V,T> values)
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<Pair<K,V>,Pair<S,T>>
map
public Pair<S,T> map(Pair<K,V> input)
- Description copied from class:
MapFn
- Maps the given input into an instance of the output type.
- Specified by:
map
in class MapFn<Pair<K,V>,Pair<S,T>>
Copyright © 2012. All Rights Reserved.