Class AsyncStateRecordsWindowBuffer.Factory

java.lang.Object
org.apache.flink.table.runtime.operators.aggregate.asyncwindow.buffers.AsyncStateRecordsWindowBuffer.Factory
All Implemented Interfaces:
Serializable, AsyncStateWindowBuffer.Factory
Enclosing class:
AsyncStateRecordsWindowBuffer

public static final class AsyncStateRecordsWindowBuffer.Factory extends Object implements AsyncStateWindowBuffer.Factory
See Also:
  • Constructor Details

  • Method Details

    • create

      public AsyncStateWindowBuffer create(Object operatorOwner, org.apache.flink.runtime.memory.MemoryManager memoryManager, long memorySize, org.apache.flink.api.common.functions.RuntimeContext runtimeContext, WindowTimerService<Long> timerService, AsyncStateKeyContext keyContext, WindowAsyncState<Long> windowState, boolean isEventTime, ZoneId shiftTimeZone) throws Exception
      Description copied from interface: AsyncStateWindowBuffer.Factory
      Creates a WindowBuffer that buffers elements in memory before flushing.
      Specified by:
      create in interface AsyncStateWindowBuffer.Factory
      Parameters:
      operatorOwner - the owner of the operator
      memoryManager - the manager that governs memory by Flink framework
      memorySize - the managed memory size can be used by this operator
      runtimeContext - the current RuntimeContext
      timerService - the service to register event-time and processing-time timers
      keyContext - the state context to accessing states
      windowState - the window async state to flush buffered data into.
      isEventTime - indicates whether the operator works in event-time or processing-time mode, used for register corresponding timers.
      shiftTimeZone - the shift timezone of the window
      Throws:
      IOException - thrown if the buffer can't be opened
      Exception