public class PairMapFn<K,V,S,T> extends MapFn<Pair<K,V>,Pair<S,T>>
| Constructor and Description |
|---|
PairMapFn(MapFn<K,S> keys,
MapFn<V,T> values) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(Emitter<Pair<S,T>> emitter)
Called during the cleanup of the MapReduce job this
DoFn is
associated with. |
void |
configure(org.apache.hadoop.conf.Configuration conf)
Configure this DoFn.
|
void |
initialize()
Initialize this DoFn.
|
Pair<S,T> |
map(Pair<K,V> input)
Maps the given input into an instance of the output type.
|
void |
setContext(org.apache.hadoop.mapreduce.TaskInputOutputContext<?,?,?,?> context)
Called during setup to pass the
TaskInputOutputContext to this
DoFn instance. |
process, scaleFactorpublic 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.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.
public Pair<S,T> map(Pair<K,V> input)
MapFnCopyright © 2013 The Apache Software Foundation. All Rights Reserved.