Interface WindowBuffer.Factory
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
RecordsWindowBuffer.Factory
- Enclosing interface:
- WindowBuffer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A factory that creates a
WindowBuffer.-
Method Summary
Modifier and TypeMethodDescriptioncreate(Object operatorOwner, org.apache.flink.runtime.memory.MemoryManager memoryManager, long memorySize, 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, ZoneId shiftTimeZone) Creates aWindowBufferthat buffers elements in memory before flushing.
-
Method Details
-
create
WindowBuffer create(Object operatorOwner, org.apache.flink.runtime.memory.MemoryManager memoryManager, long memorySize, 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, ZoneId shiftTimeZone) throws Exception Creates aWindowBufferthat buffers elements in memory before flushing.- Parameters:
operatorOwner- the owner of the operatormemoryManager- the manager that governs memory by Flink frameworkmemorySize- the managed memory size can be used by this operatorruntimeContext- the currentRuntimeContexttimerService- the service to register event-time and processing-time timersstateBackend- the state backend to accessing stateswindowState- 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 openedException
-