Class InputSideHasUniqueKeyBundle

java.lang.Object
org.apache.flink.table.runtime.operators.join.stream.bundle.BufferBundle<Map<org.apache.flink.table.data.RowData,List<org.apache.flink.table.data.RowData>>>
org.apache.flink.table.runtime.operators.join.stream.bundle.InputSideHasUniqueKeyBundle

public class InputSideHasUniqueKeyBundle extends BufferBundle<Map<org.apache.flink.table.data.RowData,List<org.apache.flink.table.data.RowData>>>
For the case that input has uniqueKey which is not contained by joinKey.
  • Field Summary

    Fields inherited from class org.apache.flink.table.runtime.operators.join.stream.bundle.BufferBundle

    actualSize, bundle, count
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    addRecord(org.apache.flink.table.data.RowData joinKey, org.apache.flink.table.data.RowData uniqueKey, org.apache.flink.table.data.RowData record)
    Adds a record into the bufferBundle when processing element in a stream and this function would return the size of the bufferBundle.
    Set<org.apache.flink.table.data.RowData>
    Get the joinKeys in bufferBundle.
    Map<org.apache.flink.table.data.RowData,List<org.apache.flink.table.data.RowData>>
    Get records associated with joinKeys from bufferBundle.
    Map<org.apache.flink.table.data.RowData,List<org.apache.flink.table.data.RowData>>
    getRecordsWithJoinKey(org.apache.flink.table.data.RowData joinKey)
    Get records associated with joinKeys from bufferBundle.

    Methods inherited from class org.apache.flink.table.runtime.operators.join.stream.bundle.BufferBundle

    clear, isEmpty, reducedSize

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InputSideHasUniqueKeyBundle

      public InputSideHasUniqueKeyBundle()
  • Method Details

    • addRecord

      public int addRecord(org.apache.flink.table.data.RowData joinKey, org.apache.flink.table.data.RowData uniqueKey, org.apache.flink.table.data.RowData record)
      Description copied from class: BufferBundle
      Adds a record into the bufferBundle when processing element in a stream and this function would return the size of the bufferBundle.
      Specified by:
      addRecord in class BufferBundle<Map<org.apache.flink.table.data.RowData,List<org.apache.flink.table.data.RowData>>>
      Parameters:
      joinKey - the joinKey associated with the record.
      uniqueKey - the uniqueKey associated with the record. This could be null.
      record - The record to add.
      Returns:
      number of processed by current bundle.
    • getRecords

      public Map<org.apache.flink.table.data.RowData,List<org.apache.flink.table.data.RowData>> getRecords()
      Description copied from class: BufferBundle
      Get records associated with joinKeys from bufferBundle.
      Specified by:
      getRecords in class BufferBundle<Map<org.apache.flink.table.data.RowData,List<org.apache.flink.table.data.RowData>>>
      Returns:
      a map whose key is joinKey and value is list of records.
    • getJoinKeys

      public Set<org.apache.flink.table.data.RowData> getJoinKeys()
      Description copied from class: BufferBundle
      Get the joinKeys in bufferBundle. Whether to override this method is based on the implementing class.
      Overrides:
      getJoinKeys in class BufferBundle<Map<org.apache.flink.table.data.RowData,List<org.apache.flink.table.data.RowData>>>
    • getRecordsWithJoinKey

      public Map<org.apache.flink.table.data.RowData,List<org.apache.flink.table.data.RowData>> getRecordsWithJoinKey(org.apache.flink.table.data.RowData joinKey)
      Description copied from class: BufferBundle
      Get records associated with joinKeys from bufferBundle. And this function is different from getRecords() above where getRecords() returns a map whose key is joinKey and value is list of records.
      Specified by:
      getRecordsWithJoinKey in class BufferBundle<Map<org.apache.flink.table.data.RowData,List<org.apache.flink.table.data.RowData>>>
      Parameters:
      joinKey - one of joinKeys stored in this bundle.
      Returns:
      a map whose key is uniqueKey and value is a list of records.