|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.crunch.DoFn<S,T> org.apache.crunch.MapFn<Pair<Object,Iterable<Object>>,Pair<K,Iterable<V>>> org.apache.crunch.types.PGroupedTableType.PairIterableMapFn<K,V>
public static class PGroupedTableType.PairIterableMapFn<K,V>
Constructor Summary | |
---|---|
PGroupedTableType.PairIterableMapFn(MapFn<Object,K> keys,
MapFn<Object,V> values)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.crunch.MapFn |
---|
process, scaleFactor |
Methods inherited from class org.apache.crunch.DoFn |
---|
cleanup, disableDeepCopy, setConfiguration |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PGroupedTableType.PairIterableMapFn(MapFn<Object,K> keys, MapFn<Object,V> values)
Method Detail |
---|
public void configure(org.apache.hadoop.conf.Configuration conf)
DoFn
Called during the job planning phase by the crunch-client.
configure
in class DoFn<Pair<Object,Iterable<Object>>,Pair<K,Iterable<V>>>
conf
- The Configuration instance for the Job.public void setContext(org.apache.hadoop.mapreduce.TaskInputOutputContext<?,?,?,?> context)
DoFn
TaskInputOutputContext
to this
DoFn
instance.
setContext
in class DoFn<Pair<Object,Iterable<Object>>,Pair<K,Iterable<V>>>
public void initialize()
DoFn
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.
initialize
in class DoFn<Pair<Object,Iterable<Object>>,Pair<K,Iterable<V>>>
public Pair<K,Iterable<V>> map(Pair<Object,Iterable<Object>> input)
MapFn
map
in class MapFn<Pair<Object,Iterable<Object>>,Pair<K,Iterable<V>>>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |