Class RecordsWindowBuffer.LocalFactory
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.aggregate.window.buffers.RecordsWindowBuffer.LocalFactory
-
- All Implemented Interfaces:
Serializable,WindowBuffer.LocalFactory
- Enclosing class:
- RecordsWindowBuffer
public static final class RecordsWindowBuffer.LocalFactory extends Object implements WindowBuffer.LocalFactory
Factory to createRecordsWindowBufferwithRecordsCombiner.LocalFactory.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocalFactory(PagedTypeSerializer<org.apache.flink.table.data.RowData> keySer, AbstractRowDataSerializer<org.apache.flink.table.data.RowData> inputSer, RecordsCombiner.LocalFactory localFactory)
-
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, org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> collector, ZoneId shiftTimeZone)Creates aWindowBufferfor local window that buffers elements in memory before flushing.
-
-
-
Constructor Detail
-
LocalFactory
public LocalFactory(PagedTypeSerializer<org.apache.flink.table.data.RowData> keySer, AbstractRowDataSerializer<org.apache.flink.table.data.RowData> inputSer, RecordsCombiner.LocalFactory localFactory)
-
-
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, org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> collector, ZoneId shiftTimeZone) throws Exception
Description copied from interface:WindowBuffer.LocalFactoryCreates aWindowBufferfor local window that buffers elements in memory before flushing.- Specified by:
createin interfaceWindowBuffer.LocalFactory- Parameters:
operatorOwner- the owner of the operatormemoryManager- the manager that governs memory by Flink frameworkmemorySize- the managed memory size can be used by this operatorcollector- collector to emit recordsshiftTimeZone- the shift timezone of the window- Throws:
IOException- thrown if the buffer can't be openedException
-
-