public abstract class SFlatMapFunction2<K,V,R> extends DoFn<Pair<K,V>,R> implements org.apache.spark.api.java.function.FlatMapFunction2<K,V,R>
FlatMapFunction2. Subclasses
of this class may be used against either Crunch PCollections or Spark RDDs.| Constructor and Description |
|---|
SFlatMapFunction2() |
| Modifier and Type | Method and Description |
|---|---|
void |
process(Pair<K,V> input,
Emitter<R> emitter)
Processes the records from a
PCollection. |
cleanup, configure, disableDeepCopy, initialize, scaleFactor, setConfiguration, setContextpublic void process(Pair<K,V> input, Emitter<R> 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 © 2016 The Apache Software Foundation. All rights reserved.