public class JoinInputSideSpec extends Object implements Serializable
JoinInputSideSpec
is ap specification which describes input side information of a
Join.Modifier and Type | Method and Description |
---|---|
KeySelector<RowData,RowData> |
getUniqueKeySelector()
Returns the
KeySelector to extract unique key from the input row. |
InternalTypeInfo<RowData> |
getUniqueKeyType()
Returns the
TypeInformation of the unique key. |
boolean |
hasUniqueKey()
Returns true if the input has unique key, otherwise false.
|
boolean |
joinKeyContainsUniqueKey()
Returns true if the join key contains the unique key of the input.
|
String |
toString() |
static JoinInputSideSpec |
withoutUniqueKey()
Creates a
JoinInputSideSpec that input hasn't any unique keys. |
static JoinInputSideSpec |
withUniqueKey(InternalTypeInfo<RowData> uniqueKeyType,
KeySelector<RowData,RowData> uniqueKeySelector)
Creates a
JoinInputSideSpec that the input has an unique key. |
static JoinInputSideSpec |
withUniqueKeyContainedByJoinKey(InternalTypeInfo<RowData> uniqueKeyType,
KeySelector<RowData,RowData> uniqueKeySelector)
Creates a
JoinInputSideSpec that input has an unique key and the unique key is
contained by the join key. |
public boolean hasUniqueKey()
public boolean joinKeyContainsUniqueKey()
@Nullable public InternalTypeInfo<RowData> getUniqueKeyType()
TypeInformation
of the unique key. Returns null if the input hasn't
unique key.@Nullable public KeySelector<RowData,RowData> getUniqueKeySelector()
KeySelector
to extract unique key from the input row. Returns null if the
input hasn't unique key.public static JoinInputSideSpec withUniqueKey(InternalTypeInfo<RowData> uniqueKeyType, KeySelector<RowData,RowData> uniqueKeySelector)
JoinInputSideSpec
that the input has an unique key.uniqueKeyType
- type information of the unique keyuniqueKeySelector
- key selector to extract unique key from the input rowpublic static JoinInputSideSpec withUniqueKeyContainedByJoinKey(InternalTypeInfo<RowData> uniqueKeyType, KeySelector<RowData,RowData> uniqueKeySelector)
JoinInputSideSpec
that input has an unique key and the unique key is
contained by the join key.uniqueKeyType
- type information of the unique keyuniqueKeySelector
- key selector to extract unique key from the input rowpublic static JoinInputSideSpec withoutUniqueKey()
JoinInputSideSpec
that input hasn't any unique keys.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.