Class TopNRecordsCombiner.Factory

java.lang.Object
org.apache.flink.table.runtime.operators.rank.window.combines.TopNRecordsCombiner.Factory
All Implemented Interfaces:
Serializable, RecordsCombiner.Factory
Enclosing class:
TopNRecordsCombiner

public static final class TopNRecordsCombiner.Factory extends Object implements RecordsCombiner.Factory
Factory to create TopNRecordsCombiner.
See Also:
  • Constructor Details

    • Factory

      public Factory(GeneratedRecordComparator genSortKeyComparator, RowDataKeySelector sortKeySelector, org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> recordSerializer, long topN)
  • Method Details

    • createRecordsCombiner

      public RecordsCombiner createRecordsCombiner(org.apache.flink.api.common.functions.RuntimeContext runtimeContext, WindowTimerService<Long> timerService, org.apache.flink.runtime.state.KeyedStateBackend<org.apache.flink.table.data.RowData> stateBackend, WindowState<Long> windowState, boolean isEventTime) throws Exception
      Description copied from interface: RecordsCombiner.Factory
      Creates a RecordsCombiner that can combine buffered data into states.
      Specified by:
      createRecordsCombiner in interface RecordsCombiner.Factory
      Parameters:
      runtimeContext - the current RuntimeContext
      timerService - the service to register event-time and processing-time timers
      stateBackend - the state backend to accessing states
      windowState - the window state to flush buffered data into.
      isEventTime - indicates whether the operator works in event-time or processing-time mode, used for register corresponding timers.
      Throws:
      Exception