public final class CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate.CoGroupOperatorWithoutFunction extends Object
CoGroupOperator without CoGroupFunction applied yet.| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.functions.Partitioner<?> |
getPartitioner()
Gets the custom partitioner used by this join, or
null, if none is set. |
CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate.CoGroupOperatorWithoutFunction |
sortFirstGroup(int field,
org.apache.flink.api.common.operators.Order order)
Sorts
Tuple elements within a group in
the first input on the specified field in the specified Order. |
CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate.CoGroupOperatorWithoutFunction |
sortFirstGroup(String fieldExpression,
org.apache.flink.api.common.operators.Order order)
Sorts Pojo or
Tuple elements within a
group in the first input on the specified field in the specified Order. |
CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate.CoGroupOperatorWithoutFunction |
sortSecondGroup(int field,
org.apache.flink.api.common.operators.Order order)
Sorts
Tuple elements within a group in
the second input on the specified field in the specified Order. |
CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate.CoGroupOperatorWithoutFunction |
sortSecondGroup(String fieldExpression,
org.apache.flink.api.common.operators.Order order)
Sorts Pojo or
Tuple elements within a
group in the second input on the specified field in the specified Order. |
<R> CoGroupOperator<I1,I2,R> |
with(org.apache.flink.api.common.functions.CoGroupFunction<I1,I2,R> function)
Finalizes a CoGroup transformation by applying a
RichCoGroupFunction to groups of elements
with identical keys. |
CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate.CoGroupOperatorWithoutFunction |
withPartitioner(org.apache.flink.api.common.functions.Partitioner<?> partitioner)
Sets a custom partitioner for the CoGroup operation.
|
public CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate.CoGroupOperatorWithoutFunction withPartitioner(org.apache.flink.api.common.functions.Partitioner<?> partitioner)
NOTE: A custom partitioner can only be used with single-field CoGroup keys, not with composite CoGroup keys.
partitioner - The custom partitioner to be used.public org.apache.flink.api.common.functions.Partitioner<?> getPartitioner()
null, if none is set.public <R> CoGroupOperator<I1,I2,R> with(org.apache.flink.api.common.functions.CoGroupFunction<I1,I2,R> function)
RichCoGroupFunction to groups of elements
with identical keys.
Each CoGroupFunction call returns an arbitrary number of keys.
function - The CoGroupFunction that is called for all groups of elements
with identical keys.RichCoGroupFunction,
DataSetpublic CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate.CoGroupOperatorWithoutFunction sortFirstGroup(int field, org.apache.flink.api.common.operators.Order order)
Tuple elements within a group in
the first input on the specified field in the specified Order.
Note: Only groups of Tuple elements and Pojos can be sorted.
Groups can be sorted by multiple fields by chaining sortFirstGroup(int, Order) calls.
field - The Tuple field on which the group is sorted.order - The Order in which the specified Tuple field is sorted.Tuple,
Orderpublic CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate.CoGroupOperatorWithoutFunction sortSecondGroup(int field, org.apache.flink.api.common.operators.Order order)
Tuple elements within a group in
the second input on the specified field in the specified Order.
Note: Only groups of Tuple elements and Pojos can be sorted.
Groups can be sorted by multiple fields by chaining sortSecondGroup(int, Order) calls.
field - The Tuple field on which the group is sorted.order - The Order in which the specified Tuple field is sorted.Tuple,
Orderpublic CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate.CoGroupOperatorWithoutFunction sortFirstGroup(String fieldExpression, org.apache.flink.api.common.operators.Order order)
Tuple elements within a
group in the first input on the specified field in the specified Order.
Groups can be sorted by multiple fields by chaining sortFirstGroup(String, Order) calls.
fieldExpression - The expression to the field on which the group is to be
sorted.order - The Order in which the specified Tuple field is sorted.Orderpublic CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate.CoGroupOperatorWithoutFunction sortSecondGroup(String fieldExpression, org.apache.flink.api.common.operators.Order order)
Tuple elements within a
group in the second input on the specified field in the specified Order.
Groups can be sorted by multiple fields by chaining sortSecondGroup(String, Order) calls.
fieldExpression - The expression to the field on which the group is to be
sorted.order - The Order in which the specified Tuple field is sorted.OrderCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.