Class JoinInputSideSpec
java.lang.Object
org.apache.flink.table.runtime.operators.join.stream.utils.JoinInputSideSpec
- All Implemented Interfaces:
Serializable
The
JoinInputSideSpec is ap specification which describes input side information of a
Join.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.api.java.functions.KeySelector<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData> Returns theKeySelectorto extract unique key from the input row.InternalTypeInfo<org.apache.flink.table.data.RowData>Returns theTypeInformationof the unique key.booleanReturns true if the input has unique key, otherwise false.booleanReturns true if the join key contains the unique key of the input.toString()static JoinInputSideSpecCreates aJoinInputSideSpecthat input hasn't any unique keys.static JoinInputSideSpecwithUniqueKey(InternalTypeInfo<org.apache.flink.table.data.RowData> uniqueKeyType, org.apache.flink.api.java.functions.KeySelector<org.apache.flink.table.data.RowData, org.apache.flink.table.data.RowData> uniqueKeySelector) Creates aJoinInputSideSpecthat the input has an unique key.static JoinInputSideSpecwithUniqueKeyContainedByJoinKey(InternalTypeInfo<org.apache.flink.table.data.RowData> uniqueKeyType, org.apache.flink.api.java.functions.KeySelector<org.apache.flink.table.data.RowData, org.apache.flink.table.data.RowData> uniqueKeySelector) Creates aJoinInputSideSpecthat input has an unique key and the unique key is contained by the join key.
-
Method Details
-
hasUniqueKey
public boolean hasUniqueKey()Returns true if the input has unique key, otherwise false. -
joinKeyContainsUniqueKey
public boolean joinKeyContainsUniqueKey()Returns true if the join key contains the unique key of the input. -
getUniqueKeyType
Returns theTypeInformationof the unique key. Returns null if the input hasn't unique key. -
getUniqueKeySelector
@Nullable public org.apache.flink.api.java.functions.KeySelector<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData> getUniqueKeySelector()Returns theKeySelectorto extract unique key from the input row. Returns null if the input hasn't unique key. -
withUniqueKey
public static JoinInputSideSpec withUniqueKey(InternalTypeInfo<org.apache.flink.table.data.RowData> uniqueKeyType, org.apache.flink.api.java.functions.KeySelector<org.apache.flink.table.data.RowData, org.apache.flink.table.data.RowData> uniqueKeySelector) Creates aJoinInputSideSpecthat the input has an unique key.- Parameters:
uniqueKeyType- type information of the unique keyuniqueKeySelector- key selector to extract unique key from the input row
-
withUniqueKeyContainedByJoinKey
public static JoinInputSideSpec withUniqueKeyContainedByJoinKey(InternalTypeInfo<org.apache.flink.table.data.RowData> uniqueKeyType, org.apache.flink.api.java.functions.KeySelector<org.apache.flink.table.data.RowData, org.apache.flink.table.data.RowData> uniqueKeySelector) Creates aJoinInputSideSpecthat input has an unique key and the unique key is contained by the join key.- Parameters:
uniqueKeyType- type information of the unique keyuniqueKeySelector- key selector to extract unique key from the input row
-
withoutUniqueKey
Creates aJoinInputSideSpecthat input hasn't any unique keys. -
toString
-