Class CoGroupOperator.CoGroupOperatorSets<I1,I2>
- java.lang.Object
-
- org.apache.flink.api.java.operators.CoGroupOperator.CoGroupOperatorSets<I1,I2>
-
- Type Parameters:
I1- The type of the first input DataSet of the CoGroup transformation.I2- The type of the second input DataSet of the CoGroup transformation.
- Enclosing class:
- CoGroupOperator<I1,I2,OUT>
public static final class CoGroupOperator.CoGroupOperatorSets<I1,I2> extends Object
Intermediate step of a CoGroup transformation.To continue the CoGroup transformation, select the grouping key of the first input
DataSetby callingwhere(int...)orwhere(KeySelector).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicateIntermediate step of a CoGroup transformation.
-
Constructor Summary
Constructors Constructor Description CoGroupOperatorSets(DataSet<I1> input1, DataSet<I2> input2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicatewhere(int... fields)Continues a CoGroup transformation.CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicatewhere(String... fields)Continues a CoGroup transformation.<K> CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicatewhere(org.apache.flink.api.java.functions.KeySelector<I1,K> keyExtractor)Continues a CoGroup transformation and defines aKeySelectorfunction for the first co-groupedDataSet.
-
-
-
Method Detail
-
where
public CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate where(int... fields)
Continues a CoGroup transformation.Defines the
Tuplefields of the first co-groupedDataSetthat should be used as grouping keys.Note: Fields can only be selected as grouping keys on Tuple DataSets.
- Parameters:
fields- The indexes of the Tuple fields of the first co-grouped DataSets that should be used as keys.- Returns:
- An incomplete CoGroup transformation. Call
CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate.equalTo(int...)to continue the CoGroup. - See Also:
Tuple,DataSet
-
where
public CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate where(String... fields)
Continues a CoGroup transformation.Defines the fields of the first co-grouped
DataSetthat should be used as grouping keys. Fields are the names of member fields of the underlying type of the data set.- Parameters:
fields- The fields of the first co-grouped DataSets that should be used as keys.- Returns:
- An incomplete CoGroup transformation. Call
CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate.equalTo(int...)to continue the CoGroup. - See Also:
Tuple,DataSet
-
where
public <K> CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate where(org.apache.flink.api.java.functions.KeySelector<I1,K> keyExtractor)
Continues a CoGroup transformation and defines aKeySelectorfunction for the first co-groupedDataSet.The KeySelector function is called for each element of the first DataSet and extracts a single key value on which the DataSet is grouped.
- Parameters:
keyExtractor- The KeySelector function which extracts the key values from the DataSet on which it is grouped.- Returns:
- An incomplete CoGroup transformation. Call
CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate.equalTo(int...)to continue the CoGroup. - See Also:
KeySelector,DataSet
-
-