public class ReduceOperator extends Operator
_configuration, _inputData, _numInstances, _stub| Constructor and Description |
|---|
ReduceOperator(org.apache.spark.api.java.function.Function2<?,?,?> stub,
java.lang.String name)
Create a new ReduceOperator that will not generate new keys.
|
ReduceOperator(org.apache.spark.api.java.function.PairFlatMapFunction<java.util.Iterator<scala.Tuple2<java.lang.Object,java.lang.Iterable<java.lang.Object>>>,java.lang.Object,java.lang.Object> stub,
java.lang.String name)
Create a new ReduceOperator that can generate new keys.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.spark.api.java.JavaPairRDD<java.lang.Object,?> |
execute()
Execute the operator.
|
_getOutput, getParameters, numInputs, setDegreeOfParallelism, setInput, setInputpublic ReduceOperator(org.apache.spark.api.java.function.Function2<?,?,?> stub, java.lang.String name)
stub - the stub class to run in the reduce operatorname - the operator namepublic ReduceOperator(org.apache.spark.api.java.function.PairFlatMapFunction<java.util.Iterator<scala.Tuple2<java.lang.Object,java.lang.Iterable<java.lang.Object>>>,java.lang.Object,java.lang.Object> stub, java.lang.String name)
stub - the stub class to run in the reduce operatorname - the operator name