Class JoinOperator.JoinOperatorSets<I1,I2>
- java.lang.Object
-
- org.apache.flink.api.java.operators.join.JoinOperatorSetsBase<I1,I2>
-
- org.apache.flink.api.java.operators.JoinOperator.JoinOperatorSets<I1,I2>
-
- Type Parameters:
I1- The type of the first input DataSet of the Join transformation.I2- The type of the second input DataSet of the Join transformation.
- Enclosing class:
- JoinOperator<I1,I2,OUT>
@Public public static final class JoinOperator.JoinOperatorSets<I1,I2> extends JoinOperatorSetsBase<I1,I2>
Intermediate step of a Join transformation.To continue the Join transformation, select the join key of the first input
DataSetby callingwhere(int...)orwhere(org.apache.flink.api.java.functions.KeySelector).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classJoinOperator.JoinOperatorSets.JoinOperatorSetsPredicateIntermediate step of a Join transformation.-
Nested classes/interfaces inherited from class org.apache.flink.api.java.operators.join.JoinOperatorSetsBase
JoinOperatorSetsBase.JoinOperatorSetsPredicateBase
-
-
Field Summary
-
Fields inherited from class org.apache.flink.api.java.operators.join.JoinOperatorSetsBase
input1, input2, joinHint, joinType
-
-
Constructor Summary
Constructors Constructor Description JoinOperatorSets(DataSet<I1> input1, DataSet<I2> input2)JoinOperatorSets(DataSet<I1> input1, DataSet<I2> input2, org.apache.flink.api.common.operators.base.JoinOperatorBase.JoinHint hint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JoinOperator.JoinOperatorSets.JoinOperatorSetsPredicatewhere(int... fields)Continues a Join transformation.JoinOperator.JoinOperatorSets.JoinOperatorSetsPredicatewhere(String... fields)Continues a Join transformation.<K> JoinOperator.JoinOperatorSets.JoinOperatorSetsPredicatewhere(org.apache.flink.api.java.functions.KeySelector<I1,K> keySelector)Continues a Join transformation and defines aKeySelectorfunction for the first joinDataSet.
-
-
-
Method Detail
-
where
public JoinOperator.JoinOperatorSets.JoinOperatorSetsPredicate where(int... fields)
Continues a Join transformation.Defines the
Tuplefields of the first joinDataSetthat should be used as join keys.Note: Fields can only be selected as join keys on Tuple DataSets.
- Overrides:
wherein classJoinOperatorSetsBase<I1,I2>- Parameters:
fields- The indexes of the other Tuple fields of the first join DataSets that should be used as keys.- Returns:
- An incomplete Join transformation. Call
JoinOperator.JoinOperatorSets.JoinOperatorSetsPredicate.equalTo(int...)orJoinOperator.JoinOperatorSets.JoinOperatorSetsPredicate.equalTo(KeySelector)to continue the Join. - See Also:
Tuple,DataSet
-
where
public JoinOperator.JoinOperatorSets.JoinOperatorSetsPredicate where(String... fields)
Continues a Join transformation.Defines the fields of the first join
DataSetthat should be used as grouping keys. Fields are the names of member fields of the underlying type of the data set.- Overrides:
wherein classJoinOperatorSetsBase<I1,I2>- Parameters:
fields- The fields of the first join DataSets that should be used as keys.- Returns:
- An incomplete Join transformation. Call
JoinOperator.JoinOperatorSets.JoinOperatorSetsPredicate.equalTo(int...)orJoinOperator.JoinOperatorSets.JoinOperatorSetsPredicate.equalTo(KeySelector)to continue the Join. - See Also:
Tuple,DataSet
-
where
public <K> JoinOperator.JoinOperatorSets.JoinOperatorSetsPredicate where(org.apache.flink.api.java.functions.KeySelector<I1,K> keySelector)
Continues a Join transformation and defines aKeySelectorfunction for the first joinDataSet.The KeySelector function is called for each element of the first DataSet and extracts a single key value on which the DataSet is joined.
- Overrides:
wherein classJoinOperatorSetsBase<I1,I2>- Parameters:
keySelector- The KeySelector function which extracts the key values from the DataSet on which it is joined.- Returns:
- An incomplete Join transformation. Call
JoinOperator.JoinOperatorSets.JoinOperatorSetsPredicate.equalTo(int...)orJoinOperator.JoinOperatorSets.JoinOperatorSetsPredicate.equalTo(KeySelector)to continue the Join. - See Also:
KeySelector,DataSet
-
-