Class RecordsWindowBuffer.Factory
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.aggregate.window.buffers.RecordsWindowBuffer.Factory
-
- All Implemented Interfaces:
Serializable,WindowBuffer.Factory
- Enclosing class:
- RecordsWindowBuffer
public static final class RecordsWindowBuffer.Factory extends Object implements WindowBuffer.Factory
Factory to createRecordsWindowBufferwithRecordsCombiner.Factory.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Factory(PagedTypeSerializer<org.apache.flink.table.data.RowData> keySer, AbstractRowDataSerializer<org.apache.flink.table.data.RowData> inputSer, RecordsCombiner.Factory combinerFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WindowBuffercreate(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.
-
-
-
Constructor Detail
-
Factory
public Factory(PagedTypeSerializer<org.apache.flink.table.data.RowData> keySer, AbstractRowDataSerializer<org.apache.flink.table.data.RowData> inputSer, RecordsCombiner.Factory combinerFactory)
-
-
Method Detail
-
create
public 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
Description copied from interface:WindowBuffer.FactoryCreates aWindowBufferthat buffers elements in memory before flushing.- Specified by:
createin interfaceWindowBuffer.Factory- 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
-
-