create
WindowBuffer create(Object operatorOwner,
MemoryManager memoryManager,
long memorySize,
RuntimeContext runtimeContext,
WindowTimerService<Long> timerService,
KeyedStateBackend<RowData> stateBackend,
WindowState<Long> windowState,
boolean isEventTime,
ZoneId shiftTimeZone)
throws Exception
Creates a
WindowBuffer
that buffers elements in memory before flushing.
- 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
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.
shiftTimeZone
- the shift timezone of the window
- Throws:
IOException
- thrown if the buffer can't be opened
Exception