This project has retired. For details please refer to its Attic page.
PGroupedTableType.PairIterableMapFn (Apache Crunch 0.11.0 API)

org.apache.crunch.types
Class PGroupedTableType.PairIterableMapFn<K,V>

java.lang.Object
  extended by org.apache.crunch.DoFn<S,T>
      extended by org.apache.crunch.MapFn<Pair<Object,Iterable<Object>>,Pair<K,Iterable<V>>>
          extended by org.apache.crunch.types.PGroupedTableType.PairIterableMapFn<K,V>
All Implemented Interfaces:
Serializable
Enclosing class:
PGroupedTableType<K,V>

public static class PGroupedTableType.PairIterableMapFn<K,V>
extends MapFn<Pair<Object,Iterable<Object>>,Pair<K,Iterable<V>>>

See Also:
Serialized Form

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

PGroupedTableType.PairIterableMapFn

public PGroupedTableType.PairIterableMapFn(MapFn<Object,K> keys,
                                           MapFn<Object,V> values)
Method Detail

configure

public void configure(org.apache.hadoop.conf.Configuration conf)
Description copied from class: DoFn
Configure this DoFn. Subclasses may override this method to modify the configuration of the Job that this DoFn instance belongs to.

Called during the job planning phase by the crunch-client.

Overrides:
configure in class DoFn<Pair<Object,Iterable<Object>>,Pair<K,Iterable<V>>>
Parameters:
conf - The Configuration instance for the Job.

setContext

public void setContext(org.apache.hadoop.mapreduce.TaskInputOutputContext<?,?,?,?> context)
Description copied from class: DoFn
Called during setup to pass the TaskInputOutputContext to this DoFn instance. The specified TaskInputOutputContext must not be null.

Overrides:
setContext in class DoFn<Pair<Object,Iterable<Object>>,Pair<K,Iterable<V>>>

initialize

public void initialize()
Description copied from class: DoFn
Initialize this DoFn. This initialization will happen before the actual 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.

Overrides:
initialize in class DoFn<Pair<Object,Iterable<Object>>,Pair<K,Iterable<V>>>

map

public Pair<K,Iterable<V>> map(Pair<Object,Iterable<Object>> input)
Description copied from class: MapFn
Maps the given input into an instance of the output type.

Specified by:
map in class MapFn<Pair<Object,Iterable<Object>>,Pair<K,Iterable<V>>>


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.