Class AbstractSyncStateWindowAggProcessor<W>
java.lang.Object
org.apache.flink.table.runtime.operators.aggregate.window.processors.WindowAggProcessorBase<W,SyncStateWindowProcessor.SyncStateContext<W>>
org.apache.flink.table.runtime.operators.aggregate.window.processors.AbstractSyncStateWindowAggProcessor<W>
- All Implemented Interfaces:
Serializable,SyncStateWindowProcessor<W>,WindowProcessor<W,SyncStateWindowProcessor.SyncStateContext<W>>
- Direct Known Subclasses:
AbstractSliceSyncStateWindowAggProcessor,UnsliceSyncStateWindowAggProcessor
public abstract class AbstractSyncStateWindowAggProcessor<W>
extends WindowAggProcessorBase<W,SyncStateWindowProcessor.SyncStateContext<W>>
implements SyncStateWindowProcessor<W>
A base class for window aggregate processors.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected final classA supplier that returns whether the window is empty.Nested classes/interfaces inherited from interface org.apache.flink.table.runtime.operators.window.tvf.common.SyncStateWindowProcessor
SyncStateWindowProcessor.SyncStateContext<W>Nested classes/interfaces inherited from interface org.apache.flink.table.runtime.operators.window.tvf.common.WindowProcessor
WindowProcessor.Context<W> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AbstractSyncStateWindowAggProcessor<W>.WindowIsEmptySupplierprotected WindowValueState<W>state schema: [key, window, accumulator].Fields inherited from class org.apache.flink.table.runtime.operators.aggregate.window.processors.WindowAggProcessorBase
accSerializer, aggregator, clockService, ctx, currentProgress, genAggsHandler, isEventTime, reuseOutput, shiftTimeZone, useDayLightSaving, windowTimerService -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSyncStateWindowAggProcessor(GeneratedNamespaceAggsHandleFunction<W> genAggsHandler, WindowAssigner sliceAssigner, org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> accSerializer, boolean isEventTime, int indexOfCountStar, ZoneId shiftTimeZone) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcollect(org.apache.flink.table.data.RowData aggResult) voidopen(SyncStateWindowProcessor.SyncStateContext<W> context) Initialization method for the function.protected final voidMethods inherited from class org.apache.flink.table.runtime.operators.aggregate.window.processors.WindowAggProcessorBase
close, collect, getWindowTimerService, initializeWatermarkMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.table.runtime.operators.window.tvf.common.SyncStateWindowProcessor
advanceProgress, clearWindow, fireWindow, prepareCheckpoint, processElementMethods inherited from interface org.apache.flink.table.runtime.operators.window.tvf.common.WindowProcessor
close, createWindowSerializer, initializeWatermark
-
Field Details
-
emptySupplier
-
windowState
state schema: [key, window, accumulator].
-
-
Constructor Details
-
AbstractSyncStateWindowAggProcessor
public AbstractSyncStateWindowAggProcessor(GeneratedNamespaceAggsHandleFunction<W> genAggsHandler, WindowAssigner sliceAssigner, org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> accSerializer, boolean isEventTime, int indexOfCountStar, ZoneId shiftTimeZone)
-
-
Method Details
-
open
Description copied from interface:WindowProcessorInitialization method for the function. It is called before the actual working methods.- Specified by:
openin interfaceWindowProcessor<W,SyncStateWindowProcessor.SyncStateContext<W>> - Overrides:
openin classWindowAggProcessorBase<W,SyncStateWindowProcessor.SyncStateContext<W>> - Throws:
Exception
-
prepareAggregator
- Specified by:
prepareAggregatorin classWindowAggProcessorBase<W,SyncStateWindowProcessor.SyncStateContext<W>> - Throws:
Exception
-
collect
protected void collect(org.apache.flink.table.data.RowData aggResult)
-