public abstract class MapValuesFn<K,V1,V2> extends DoFn<Pair<K,V1>,Pair<K,V2>>
| Constructor and Description |
|---|
MapValuesFn() |
| Modifier and Type | Method and Description |
|---|---|
abstract V2 |
map(V1 v) |
void |
process(Pair<K,V1> input,
Emitter<Pair<K,V2>> emitter)
Processes the records from a
PCollection. |
cleanup, configure, initialize, scaleFactor, setContextpublic void process(Pair<K,V1> input, Emitter<Pair<K,V2>> emitter)
DoFnPCollection.
DoFn.process(Object, Emitter) method call. This
functionality is imposed by Hadoop's Reducer implementation: The framework will reuse the key and value
objects that are passed into the reduce, therefore the application should
clone the objects they want to keep a copy of.Copyright © 2013 The Apache Software Foundation. All Rights Reserved.