Class AbstractAsyncStateWindowAggProcessor<W>
java.lang.Object
org.apache.flink.table.runtime.operators.aggregate.window.processors.WindowAggProcessorBase<W,AsyncStateWindowProcessor.AsyncStateContext<W>>
org.apache.flink.table.runtime.operators.aggregate.asyncwindow.processors.AbstractAsyncStateWindowAggProcessor<W>
- All Implemented Interfaces:
Serializable,AsyncStateWindowProcessor<W>,WindowProcessor<W,AsyncStateWindowProcessor.AsyncStateContext<W>>
- Direct Known Subclasses:
AbstractAsyncStateSliceWindowAggProcessor
public abstract class AbstractAsyncStateWindowAggProcessor<W>
extends WindowAggProcessorBase<W,AsyncStateWindowProcessor.AsyncStateContext<W>>
implements AsyncStateWindowProcessor<W>
A base class for window aggregate processors with async state.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final classA checker that checks whether the window is empty.Nested classes/interfaces inherited from interface org.apache.flink.table.runtime.operators.window.async.tvf.common.AsyncStateWindowProcessor
AsyncStateWindowProcessor.AsyncStateContext<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 AbstractAsyncStateWindowAggProcessor.WindowIsEmptyCheckerprotected WindowAsyncValueState<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
ConstructorsConstructorDescriptionAbstractAsyncStateWindowAggProcessor(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, W defaultWindow) -
Method Summary
Modifier and TypeMethodDescriptionvoidopen(AsyncStateWindowProcessor.AsyncStateContext<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.async.tvf.common.AsyncStateWindowProcessor
advanceProgress, clearWindow, fireWindow, prepareCheckpoint, processElementMethods inherited from interface org.apache.flink.table.runtime.operators.window.tvf.common.WindowProcessor
close, createWindowSerializer, initializeWatermark
-
Field Details
-
emptyChecker
-
windowState
state schema: [key, window, accumulator].
-
-
Constructor Details
-
AbstractAsyncStateWindowAggProcessor
public AbstractAsyncStateWindowAggProcessor(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, W defaultWindow)
-
-
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,AsyncStateWindowProcessor.AsyncStateContext<W>> - Overrides:
openin classWindowAggProcessorBase<W,AsyncStateWindowProcessor.AsyncStateContext<W>> - Throws:
Exception
-
prepareAggregator
- Specified by:
prepareAggregatorin classWindowAggProcessorBase<W,AsyncStateWindowProcessor.AsyncStateContext<W>> - Throws:
Exception
-