public static class PGroupedTableType.PairIterableMapFn<K,V> extends MapFn<Pair<Object,Iterable<Object>>,Pair<K,Iterable<V>>>
| Constructor and Description |
|---|
PGroupedTableType.PairIterableMapFn(MapFn<Object,K> keys,
MapFn<Object,V> values) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.hadoop.conf.Configuration conf)
Configure this DoFn.
|
void |
initialize()
Initialize this DoFn.
|
Pair<K,Iterable<V>> |
map(Pair<Object,Iterable<Object>> 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, scaleFactorcleanup, disableDeepCopy, setConfigurationpublic 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. The specified TaskInputOutputContext must not be null.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.
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.