Class JoinInputSideSpec

    • Method Detail

      • 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

        @Nullable
        public InternalTypeInfo<org.apache.flink.table.data.RowData> getUniqueKeyType()
        Returns the TypeInformation of 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 the KeySelector to 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 a JoinInputSideSpec that the input has an unique key.
        Parameters:
        uniqueKeyType - type information of the unique key
        uniqueKeySelector - 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 a JoinInputSideSpec that input has an unique key and the unique key is contained by the join key.
        Parameters:
        uniqueKeyType - type information of the unique key
        uniqueKeySelector - key selector to extract unique key from the input row