@Internal public class CoGroupOperatorBase<IN1,IN2,OUT,FT extends CoGroupFunction<IN1,IN2,OUT>> extends DualInputOperator<IN1,IN2,OUT,FT>
CoGroupFunctioninput1, input2broadcastInputs, userFunctioncompilerHints, name, operatorInfo, parameters| Constructor and Description |
|---|
CoGroupOperatorBase(Class<? extends FT> udf,
BinaryOperatorInformation<IN1,IN2,OUT> operatorInfo,
int[] keyPositions1,
int[] keyPositions2,
String name) |
CoGroupOperatorBase(FT udf,
BinaryOperatorInformation<IN1,IN2,OUT> operatorInfo,
int[] keyPositions1,
int[] keyPositions2,
String name) |
CoGroupOperatorBase(UserCodeWrapper<FT> udf,
BinaryOperatorInformation<IN1,IN2,OUT> operatorInfo,
int[] keyPositions1,
int[] keyPositions2,
String name) |
| Modifier and Type | Method and Description |
|---|---|
protected List<OUT> |
executeOnCollections(List<IN1> input1,
List<IN2> input2,
RuntimeContext ctx,
ExecutionConfig executionConfig) |
Partitioner<?> |
getCustomPartitioner() |
Ordering |
getGroupOrder(int inputNum)
Gets the value order for an input, i.e.
|
Ordering |
getGroupOrderForInputOne()
Gets the order of elements within a group for the first input.
|
Ordering |
getGroupOrderForInputTwo()
Gets the order of elements within a group for the second input.
|
boolean |
isCombinableFirst() |
boolean |
isCombinableSecond() |
void |
setCombinableFirst(boolean combinableFirst) |
void |
setCombinableSecond(boolean combinableSecond) |
void |
setCustomPartitioner(Partitioner<?> customPartitioner) |
void |
setGroupOrder(int inputNum,
Ordering order)
Sets the order of the elements within a group for the given input.
|
void |
setGroupOrderForInputOne(Ordering order)
Sets the order of the elements within a group for the first input.
|
void |
setGroupOrderForInputTwo(Ordering order)
Sets the order of the elements within a group for the second input.
|
accept, addFirstInput, addFirstInputs, addSecondInput, addSecondInputs, clearFirstInput, clearSecondInput, getFirstInput, getKeyColumns, getNumberOfInputs, getOperatorInfo, getSecondInput, getSemanticProperties, setFirstInput, setFirstInput, setFirstInputs, setSecondInput, setSecondInput, setSecondInputs, setSemanticPropertiesasArray, emptyClassArray, getBroadcastInputs, getUserCodeWrapper, setBroadcastVariable, setBroadcastVariablescreateUnionCascade, createUnionCascade, createUnionCascade, getCompilerHints, getName, getParallelism, getParameters, setName, setParallelism, setParameter, setParameter, setParameter, toStringpublic CoGroupOperatorBase(UserCodeWrapper<FT> udf, BinaryOperatorInformation<IN1,IN2,OUT> operatorInfo, int[] keyPositions1, int[] keyPositions2, String name)
public CoGroupOperatorBase(FT udf, BinaryOperatorInformation<IN1,IN2,OUT> operatorInfo, int[] keyPositions1, int[] keyPositions2, String name)
public void setGroupOrder(int inputNum,
Ordering order)
inputNum - The number of the input (here either 0 or 1).order - The order for the elements in a group.public void setGroupOrderForInputOne(Ordering order)
order - The order for the elements in a group.public void setGroupOrderForInputTwo(Ordering order)
order - The order for the elements in a group.public Ordering getGroupOrder(int inputNum)
inputNum - The number of the input (here either 0 or 1).public Ordering getGroupOrderForInputOne()
public Ordering getGroupOrderForInputTwo()
public boolean isCombinableFirst()
public void setCombinableFirst(boolean combinableFirst)
public boolean isCombinableSecond()
public void setCombinableSecond(boolean combinableSecond)
public void setCustomPartitioner(Partitioner<?> customPartitioner)
public Partitioner<?> getCustomPartitioner()
protected List<OUT> executeOnCollections(List<IN1> input1, List<IN2> input2, RuntimeContext ctx, ExecutionConfig executionConfig) throws Exception
executeOnCollections in class DualInputOperator<IN1,IN2,OUT,FT extends CoGroupFunction<IN1,IN2,OUT>>ExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.