java.lang.Object
org.apache.flink.table.runtime.operators.join.window.utils.WindowJoinHelper

public abstract class WindowJoinHelper extends Object
A helper to do the window join operations for WindowJoinOperator and AsyncStateWindowJoinOperator.
  • Field Details

    • leftSerializer

      protected final RowDataSerializer leftSerializer
    • rightSerializer

      protected final RowDataSerializer rightSerializer
    • joinCondition

      protected final JoinConditionWithNullFilters joinCondition
    • collector

      protected final org.apache.flink.streaming.api.operators.TimestampedCollector<org.apache.flink.table.data.RowData> collector
      This is used for emitting elements with a given timestamp.
  • Constructor Details

  • Method Details

    • registerMetric

      public void registerMetric(org.apache.flink.metrics.groups.OperatorMetricGroup metrics)
    • processElement

      public void processElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<org.apache.flink.table.data.RowData> element, int windowEndIndex, org.apache.flink.metrics.Meter lateRecordsDroppedRate, org.apache.flink.util.function.BiConsumerWithException<Long,org.apache.flink.table.data.RowData,Exception> accStateConsumer) throws Exception
      Throws:
      Exception
    • joinAndClear

      public void joinAndClear(long windowEnd, @Nullable Iterable<org.apache.flink.table.data.RowData> leftRecords, @Nullable Iterable<org.apache.flink.table.data.RowData> rightRecords) throws Exception
      Throws:
      Exception
    • getLeftLateRecordsDroppedRate

      public org.apache.flink.metrics.Meter getLeftLateRecordsDroppedRate()
    • getRightLateRecordsDroppedRate

      public org.apache.flink.metrics.Meter getRightLateRecordsDroppedRate()
    • clearState

      public abstract void clearState(long windowEnd, boolean isLeft) throws Exception
      Throws:
      Exception