I1 - The type of the first input DataSet of the Join transformation.I2 - The type of the second input DataSet of the Join transformation.OUT - The type of the result of the Join transformation.@Public public abstract class JoinOperator<I1,I2,OUT> extends TwoInputUdfOperator<I1,I2,OUT,JoinOperator<I1,I2,OUT>>
DataSet that is the result of a Join transformation.DataSet| Modifier and Type | Class and Description |
|---|---|
static class |
JoinOperator.DefaultJoin<I1,I2>
A Join transformation that wraps pairs of joining elements into
Tuple2. |
static class |
JoinOperator.EquiJoin<I1,I2,OUT>
A Join transformation that applies a
JoinFunction on each pair of joining elements. |
static class |
JoinOperator.JoinOperatorSets<I1,I2>
Intermediate step of a Join transformation.
|
static class |
JoinOperator.ProjectJoin<I1,I2,OUT extends org.apache.flink.api.java.tuple.Tuple>
A Join transformation that projects joining elements or fields of joining
Tuples into result Tuples. |
| Modifier and Type | Field and Description |
|---|---|
protected JoinType |
joinType |
protected org.apache.flink.api.common.operators.Keys<I1> |
keys1 |
protected org.apache.flink.api.common.operators.Keys<I2> |
keys2 |
minResources, name, parallelism, preferredResources| Modifier | Constructor and Description |
|---|---|
protected |
JoinOperator(DataSet<I1> input1,
DataSet<I2> input2,
org.apache.flink.api.common.operators.Keys<I1> keys1,
org.apache.flink.api.common.operators.Keys<I2> keys2,
org.apache.flink.api.common.typeinfo.TypeInformation<OUT> returnType,
org.apache.flink.api.common.operators.base.JoinOperatorBase.JoinHint hint,
JoinType type) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.operators.base.JoinOperatorBase.JoinHint |
getJoinHint()
Gets the JoinHint that describes how the join is executed.
|
JoinType |
getJoinType()
Gets the JoinType that describes this join operation (e.g.
|
protected org.apache.flink.api.common.operators.Keys<I1> |
getKeys1() |
protected org.apache.flink.api.common.operators.Keys<I2> |
getKeys2() |
org.apache.flink.api.common.functions.Partitioner<?> |
getPartitioner()
Gets the custom partitioner used by this join, or
null, if none is set. |
JoinOperator<I1,I2,OUT> |
withPartitioner(org.apache.flink.api.common.functions.Partitioner<?> partitioner)
Sets a custom partitioner for this join.
|
extractSemanticAnnotationsFromUdf, getAnalyzedUdfSemanticsFlag, getBroadcastSets, getFunction, getParameters, getSemanticProperties, returns, returns, returns, setAnalyzedUdfSemanticsFlag, setSemanticProperties, udfWithForwardedFieldsFirstAnnotation, udfWithForwardedFieldsSecondAnnotation, withBroadcastSet, withForwardedFieldsFirst, withForwardedFieldsSecond, withParametersgetInput1, getInput1Type, getInput2, getInput2Type, translateToDataFlowgetMinResources, getName, getParallelism, getPreferredResources, getResultType, name, setParallelismaggregate, checkSameExecutionContext, clean, coGroup, collect, combineGroup, count, cross, crossWithHuge, crossWithTiny, distinct, distinct, distinct, distinct, fillInType, filter, first, flatMap, fullOuterJoin, fullOuterJoin, getExecutionEnvironment, getType, groupBy, groupBy, groupBy, iterate, iterateDelta, join, join, joinWithHuge, joinWithTiny, leftOuterJoin, leftOuterJoin, map, mapPartition, max, maxBy, min, minBy, output, partitionByHash, partitionByHash, partitionByHash, partitionByRange, partitionByRange, partitionByRange, partitionCustom, partitionCustom, partitionCustom, print, print, printOnTaskManager, printToErr, printToErr, project, rebalance, reduce, reduceGroup, rightOuterJoin, rightOuterJoin, runOperation, sortPartition, sortPartition, sortPartition, sum, union, write, write, writeAsCsv, writeAsCsv, writeAsCsv, writeAsCsv, writeAsFormattedText, writeAsFormattedText, writeAsText, writeAsTextprotected final org.apache.flink.api.common.operators.Keys<I1> keys1
protected final org.apache.flink.api.common.operators.Keys<I2> keys2
protected final JoinType joinType
protected JoinOperator(DataSet<I1> input1, DataSet<I2> input2, org.apache.flink.api.common.operators.Keys<I1> keys1, org.apache.flink.api.common.operators.Keys<I2> keys2, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> returnType, org.apache.flink.api.common.operators.base.JoinOperatorBase.JoinHint hint, JoinType type)
protected org.apache.flink.api.common.operators.Keys<I1> getKeys1()
protected org.apache.flink.api.common.operators.Keys<I2> getKeys2()
@Internal public org.apache.flink.api.common.operators.base.JoinOperatorBase.JoinHint getJoinHint()
@Internal public JoinType getJoinType()
public JoinOperator<I1,I2,OUT> withPartitioner(org.apache.flink.api.common.functions.Partitioner<?> partitioner)
NOTE: A custom partitioner can only be used with single-field join keys, not with composite join keys.
partitioner - The custom partitioner to be used.@Internal public org.apache.flink.api.common.functions.Partitioner<?> getPartitioner()
null, if none is set.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.