T - The type (parameters and return type) of the reduce function.FT - The type of the reduce function.public class ReduceOperatorBase<T,FT extends ReduceFunction<T>> extends SingleInputOperator<T,T,FT>
ReduceFunctioninputbroadcastInputs, userFunctioncompilerHints, name, operatorInfo, parameters| Constructor and Description |
|---|
ReduceOperatorBase(Class<? extends FT> udf,
UnaryOperatorInformation<T,T> operatorInfo,
int[] keyPositions,
String name)
Creates a grouped reduce data flow operator.
|
ReduceOperatorBase(Class<? extends FT> udf,
UnaryOperatorInformation<T,T> operatorInfo,
String name)
Creates a non-grouped reduce data flow operator (all-reduce).
|
ReduceOperatorBase(FT udf,
UnaryOperatorInformation<T,T> operatorInfo,
int[] keyPositions,
String name)
Creates a grouped reduce data flow operator.
|
ReduceOperatorBase(FT udf,
UnaryOperatorInformation<T,T> operatorInfo,
String name)
Creates a non-grouped reduce data flow operator (all-reduce).
|
ReduceOperatorBase(UserCodeWrapper<FT> udf,
UnaryOperatorInformation<T,T> operatorInfo,
int[] keyPositions,
String name)
Creates a grouped reduce data flow operator.
|
ReduceOperatorBase(UserCodeWrapper<FT> udf,
UnaryOperatorInformation<T,T> operatorInfo,
String name)
Creates a non-grouped reduce data flow operator (all-reduce).
|
| Modifier and Type | Method and Description |
|---|---|
protected List<T> |
executeOnCollections(List<T> inputData,
RuntimeContext ctx,
ExecutionConfig executionConfig) |
Partitioner<?> |
getCustomPartitioner() |
void |
setCustomPartitioner(Partitioner<?> customPartitioner) |
accept, addInput, addInput, clearInputs, getInput, getKeyColumns, getNumberOfInputs, getOperatorInfo, getSemanticProperties, setInput, setInput, setInputs, setSemanticPropertiesasArray, emptyClassArray, getBroadcastInputs, getUserCodeWrapper, setBroadcastVariable, setBroadcastVariablescreateUnionCascade, createUnionCascade, createUnionCascade, getCompilerHints, getName, getParallelism, getParameters, setName, setParallelism, setParameter, setParameter, setParameter, toStringpublic ReduceOperatorBase(UserCodeWrapper<FT> udf, UnaryOperatorInformation<T,T> operatorInfo, int[] keyPositions, String name)
udf - The user-defined function, contained in the UserCodeWrapper.operatorInfo - The type information, describing input and output types of the reduce function.keyPositions - The positions of the key fields, in the common data model (flattened).name - The name of the operator (for logging and messages).public ReduceOperatorBase(FT udf, UnaryOperatorInformation<T,T> operatorInfo, int[] keyPositions, String name)
udf - The user-defined function, as a function object.operatorInfo - The type information, describing input and output types of the reduce function.keyPositions - The positions of the key fields, in the common data model (flattened).name - The name of the operator (for logging and messages).public ReduceOperatorBase(Class<? extends FT> udf, UnaryOperatorInformation<T,T> operatorInfo, int[] keyPositions, String name)
udf - The class representing the parameterless user-defined function.operatorInfo - The type information, describing input and output types of the reduce function.keyPositions - The positions of the key fields, in the common data model (flattened).name - The name of the operator (for logging and messages).public ReduceOperatorBase(UserCodeWrapper<FT> udf, UnaryOperatorInformation<T,T> operatorInfo, String name)
udf - The user-defined function, contained in the UserCodeWrapper.operatorInfo - The type information, describing input and output types of the reduce function.name - The name of the operator (for logging and messages).public ReduceOperatorBase(FT udf, UnaryOperatorInformation<T,T> operatorInfo, String name)
udf - The user-defined function, as a function object.operatorInfo - The type information, describing input and output types of the reduce function.name - The name of the operator (for logging and messages).public ReduceOperatorBase(Class<? extends FT> udf, UnaryOperatorInformation<T,T> operatorInfo, String name)
udf - The class representing the parameterless user-defined function.operatorInfo - The type information, describing input and output types of the reduce function.name - The name of the operator (for logging and messages).public void setCustomPartitioner(Partitioner<?> customPartitioner)
public Partitioner<?> getCustomPartitioner()
protected List<T> executeOnCollections(List<T> inputData, RuntimeContext ctx, ExecutionConfig executionConfig) throws Exception
executeOnCollections in class SingleInputOperator<T,T,FT extends ReduceFunction<T>>ExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.