|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.crunch.DoFn<S,T>
org.apache.crunch.MapFn<R,T>
org.apache.crunch.fn.CompositeMapFn<R,S,T>
public class CompositeMapFn<R,S,T>
| Constructor Summary | |
|---|---|
CompositeMapFn(MapFn<R,S> first,
MapFn<S,T> second)
|
|
| Method Summary | |
|---|---|
void |
cleanup(Emitter<T> emitter)
Called during the cleanup of the MapReduce job this DoFn is
associated with. |
void |
configure(org.apache.hadoop.conf.Configuration conf)
Called during the job planning phase. |
MapFn<R,S> |
getFirst()
|
MapFn<S,T> |
getSecond()
|
void |
initialize()
Called during the setup of the MapReduce job this DoFn is
associated with. |
T |
map(R input)
Maps the given input into an instance of the output type. |
void |
setConfigurationForTest(org.apache.hadoop.conf.Configuration conf)
Sets a Configuration instance to be used during unit tests. |
| Methods inherited from class org.apache.crunch.MapFn |
|---|
process, scaleFactor |
| Methods inherited from class org.apache.crunch.DoFn |
|---|
setContext |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeMapFn(MapFn<R,S> first,
MapFn<S,T> second)
| Method Detail |
|---|
public void initialize()
DoFnDoFn is
associated with. Subclasses may override this method to do appropriate
initialization.
initialize in class DoFn<R,T>public MapFn<R,S> getFirst()
public MapFn<S,T> getSecond()
public T map(R input)
MapFn
map in class MapFn<R,T>public void cleanup(Emitter<T> emitter)
DoFnDoFn is
associated with. Subclasses may override this method to do appropriate
cleanup.
cleanup in class DoFn<R,T>emitter - The emitter that was used for outputpublic void configure(org.apache.hadoop.conf.Configuration conf)
DoFn
configure in class DoFn<R,T>conf - The Configuration instance for the Job.public void setConfigurationForTest(org.apache.hadoop.conf.Configuration conf)
DoFnConfiguration instance to be used during unit tests.
setConfigurationForTest in class DoFn<R,T>conf - The Configuration instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||