Interface OuterJoinRecordAsyncStateView

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default org.apache.flink.api.common.state.v2.StateFuture<Void> addRecord​(org.apache.flink.table.data.RowData record)
      Add a new record to the state view.
      org.apache.flink.api.common.state.v2.StateFuture<Void> addRecord​(org.apache.flink.table.data.RowData record, int numOfAssociations)
      Adds a new record with the number of associations to the state view.
      default org.apache.flink.api.common.state.v2.StateFuture<List<OuterRecord>> findMatchedRecords​(Function<org.apache.flink.table.data.RowData,​Boolean> condition)
      Find all the records matched the condition under the current context (i.e. join key).
      org.apache.flink.api.common.state.v2.StateFuture<List<OuterRecord>> findMatchedRecordsAndNumOfAssociations​(Function<org.apache.flink.table.data.RowData,​Boolean> condition)
      Find all the records matched the condition and the corresponding number of associations under the current context (i.e. join key).
      org.apache.flink.api.common.state.v2.StateFuture<Void> updateNumOfAssociations​(org.apache.flink.table.data.RowData record, int numOfAssociations)
      Updates the number of associations belongs to the record.
    • Method Detail

      • addRecord

        org.apache.flink.api.common.state.v2.StateFuture<Void> addRecord​(org.apache.flink.table.data.RowData record,
                                                                         int numOfAssociations)
        Adds a new record with the number of associations to the state view.
        Parameters:
        record - the added record
        numOfAssociations - the number of records associated with other side
      • updateNumOfAssociations

        org.apache.flink.api.common.state.v2.StateFuture<Void> updateNumOfAssociations​(org.apache.flink.table.data.RowData record,
                                                                                       int numOfAssociations)
        Updates the number of associations belongs to the record.
        Parameters:
        record - the record to update
        numOfAssociations - the new number of records associated with other side
      • findMatchedRecordsAndNumOfAssociations

        org.apache.flink.api.common.state.v2.StateFuture<List<OuterRecord>> findMatchedRecordsAndNumOfAssociations​(Function<org.apache.flink.table.data.RowData,​Boolean> condition)
        Find all the records matched the condition and the corresponding number of associations under the current context (i.e. join key).