java.lang.Object
org.apache.flink.table.runtime.operators.join.stream.utils.AssociatedRecords

public class AssociatedRecords extends Object
The AssociatedRecords is the records associated to the input row. It is a wrapper of List<OuterRecord> which provides two helpful methods getRecords() and getOuterRecords(). See the method Javadoc for more details.
  • Method Details

    • isEmpty

      public boolean isEmpty()
    • size

      public int size()
    • getRecords

      public Iterable<org.apache.flink.table.data.RowData> getRecords()
      Gets the iterable of records. This is usually be called when the AssociatedRecords is from inner side.
    • getOuterRecords

      public Iterable<OuterRecord> getOuterRecords()
      Gets the iterable of OuterRecord which composites record and numOfAssociations. This is usually be called when the AssociatedRecords is from outer side.
    • fromSyncStateView

      public static AssociatedRecords fromSyncStateView(org.apache.flink.table.data.RowData input, boolean inputIsLeft, JoinRecordStateView otherSideStateView, JoinCondition condition) throws Exception
      Creates an AssociatedRecords which represents the records associated to the input row.

      This method is used in the sync state join operator.

      Throws:
      Exception
    • fromAsyncStateView

      public static org.apache.flink.api.common.state.v2.StateFuture<AssociatedRecords> fromAsyncStateView(org.apache.flink.table.data.RowData input, boolean inputIsLeft, JoinRecordAsyncStateView otherSideAsyncStateView, JoinCondition joinCondition) throws Exception
      Creates an AssociatedRecords which represents the records associated to the input row.

      This method is used in the async state join operator.

      Throws:
      Exception