@Internal public class GroupReduceOperatorBase<IN,OUT,FT extends GroupReduceFunction<IN,OUT>> extends SingleInputOperator<IN,OUT,FT>
GroupReduceFunction
input
broadcastInputs, userFunction
compilerHints, name, operatorInfo, parameters
Constructor and Description |
---|
GroupReduceOperatorBase(Class<? extends FT> udf,
UnaryOperatorInformation<IN,OUT> operatorInfo,
int[] keyPositions,
String name) |
GroupReduceOperatorBase(Class<? extends FT> udf,
UnaryOperatorInformation<IN,OUT> operatorInfo,
String name) |
GroupReduceOperatorBase(FT udf,
UnaryOperatorInformation<IN,OUT> operatorInfo,
int[] keyPositions,
String name) |
GroupReduceOperatorBase(FT udf,
UnaryOperatorInformation<IN,OUT> operatorInfo,
String name) |
GroupReduceOperatorBase(UserCodeWrapper<FT> udf,
UnaryOperatorInformation<IN,OUT> operatorInfo,
int[] keyPositions,
String name) |
GroupReduceOperatorBase(UserCodeWrapper<FT> udf,
UnaryOperatorInformation<IN,OUT> operatorInfo,
String name) |
Modifier and Type | Method and Description |
---|---|
protected List<OUT> |
executeOnCollections(List<IN> inputData,
RuntimeContext ctx,
ExecutionConfig executionConfig) |
Partitioner<?> |
getCustomPartitioner() |
Ordering |
getGroupOrder()
Gets the order of elements within a reduce group.
|
boolean |
isCombinable()
Checks whether the operation is combinable.
|
void |
setCombinable(boolean combinable)
Marks the group reduce operation as combinable.
|
void |
setCustomPartitioner(Partitioner<?> customPartitioner) |
void |
setGroupOrder(Ordering order)
Sets the order of the elements within a reduce group.
|
accept, addInput, addInput, clearInputs, getInput, getKeyColumns, getNumberOfInputs, getOperatorInfo, getSemanticProperties, setInput, setInput, setInputs, setSemanticProperties
asArray, emptyClassArray, getBroadcastInputs, getUserCodeWrapper, setBroadcastVariable, setBroadcastVariables
createUnionCascade, createUnionCascade, createUnionCascade, getCompilerHints, getMinResources, getName, getParallelism, getParameters, getPreferredResources, setName, setParallelism, setParameter, setParameter, setParameter, setResources, toString
public GroupReduceOperatorBase(UserCodeWrapper<FT> udf, UnaryOperatorInformation<IN,OUT> operatorInfo, int[] keyPositions, String name)
public GroupReduceOperatorBase(FT udf, UnaryOperatorInformation<IN,OUT> operatorInfo, int[] keyPositions, String name)
public GroupReduceOperatorBase(Class<? extends FT> udf, UnaryOperatorInformation<IN,OUT> operatorInfo, int[] keyPositions, String name)
public GroupReduceOperatorBase(UserCodeWrapper<FT> udf, UnaryOperatorInformation<IN,OUT> operatorInfo, String name)
public GroupReduceOperatorBase(FT udf, UnaryOperatorInformation<IN,OUT> operatorInfo, String name)
public void setGroupOrder(Ordering order)
order
- The order for the elements in a reduce group.public Ordering getGroupOrder()
public void setCombinable(boolean combinable)
GroupCombineFunction
.combinable
- Flag to mark the group reduce operation as combinable.public boolean isCombinable()
setCombinable(boolean)
public void setCustomPartitioner(Partitioner<?> customPartitioner)
public Partitioner<?> getCustomPartitioner()
protected List<OUT> executeOnCollections(List<IN> inputData, RuntimeContext ctx, ExecutionConfig executionConfig) throws Exception
executeOnCollections
in class SingleInputOperator<IN,OUT,FT extends GroupReduceFunction<IN,OUT>>
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.