public abstract class SPairFunction<T,K,V> extends MapFn<T,R> implements org.apache.spark.api.java.function.PairFunction<T,K,V>
PairFunction. Subclasses
 of this class may be used against either Crunch PCollections or Spark RDDs.| Constructor and Description | 
|---|
| SPairFunction() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | cleanup(Emitter<R> emitter)Called during the cleanup of the MapReduce job this  DoFnis
 associated with. | 
| void | initialize()Initialize this DoFn. | 
| Pair<K,V> | map(T input)Maps the given input into an instance of the output type. | 
process, scaleFactorconfigure, disableDeepCopy, setConfiguration, setContextpublic Pair<K,V> map(T input)
MapFnpublic final void initialize()
DoFnDoFn.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<T,R>Copyright © 2017 The Apache Software Foundation. All rights reserved.