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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classAbstractSyncStateWindowAggProcessor.WindowIsEmptySupplierA 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
Fields Modifier and Type Field Description protected AbstractSyncStateWindowAggProcessor.WindowIsEmptySupplieremptySupplierprotected WindowValueState<W>windowStatestate 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
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcollect(org.apache.flink.table.data.RowData aggResult)voidopen(SyncStateWindowProcessor.SyncStateContext<W> context)Initialization method for the function.protected voidprepareAggregator()-
Methods inherited from class org.apache.flink.table.runtime.operators.aggregate.window.processors.WindowAggProcessorBase
close, collect, getWindowTimerService, initializeWatermark
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.runtime.operators.window.tvf.common.SyncStateWindowProcessor
advanceProgress, clearWindow, fireWindow, prepareCheckpoint, processElement
-
Methods inherited from interface org.apache.flink.table.runtime.operators.window.tvf.common.WindowProcessor
close, createWindowSerializer, initializeWatermark
-
-
-
-
Field Detail
-
emptySupplier
protected final AbstractSyncStateWindowAggProcessor.WindowIsEmptySupplier emptySupplier
-
windowState
protected transient WindowValueState<W> windowState
state schema: [key, window, accumulator].
-
-
Constructor Detail
-
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 Detail
-
open
public void open(SyncStateWindowProcessor.SyncStateContext<W> context) throws Exception
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
protected final void prepareAggregator() throws Exception- Specified by:
prepareAggregatorin classWindowAggProcessorBase<W,SyncStateWindowProcessor.SyncStateContext<W>>- Throws:
Exception
-
collect
protected void collect(org.apache.flink.table.data.RowData aggResult)
-
-