Class AsyncStateSliceUnsharedWindowAggProcessor
- 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<Long>
-
- org.apache.flink.table.runtime.operators.aggregate.asyncwindow.processors.AbstractAsyncStateSliceWindowAggProcessor
-
- org.apache.flink.table.runtime.operators.aggregate.asyncwindow.processors.AsyncStateSliceUnsharedWindowAggProcessor
-
- All Implemented Interfaces:
Serializable,AsyncStateWindowProcessor<Long>,AsyncStateSlicingWindowProcessor<Long>,WindowProcessor<Long,AsyncStateWindowProcessor.AsyncStateContext<Long>>
public final class AsyncStateSliceUnsharedWindowAggProcessor extends AbstractAsyncStateSliceWindowAggProcessor
A window aggregate processor implementation which works forSliceUnsharedAssignerwith async state, e.g. tumbling windows.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.table.runtime.operators.aggregate.asyncwindow.processors.AbstractAsyncStateWindowAggProcessor
AbstractAsyncStateWindowAggProcessor.WindowIsEmptyChecker
-
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
-
Fields inherited from class org.apache.flink.table.runtime.operators.aggregate.asyncwindow.processors.AbstractAsyncStateSliceWindowAggProcessor
sliceAssigner, windowBuffer, windowBufferFactory, windowInterval
-
Fields inherited from class org.apache.flink.table.runtime.operators.aggregate.asyncwindow.processors.AbstractAsyncStateWindowAggProcessor
emptyChecker, windowState
-
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 AsyncStateSliceUnsharedWindowAggProcessor(GeneratedNamespaceAggsHandleFunction<Long> genAggsHandler, AsyncStateWindowBuffer.Factory windowBufferFactory, SliceUnsharedAssigner sliceAssigner, org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> accSerializer, int indexOfCountStar, ZoneId shiftTimeZone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.api.common.state.v2.StateFuture<Void>fireWindow(long timerTimestamp, Long windowEnd)Emit results of the given window.protected org.apache.flink.api.common.state.v2.StateFuture<Long>sliceStateMergeTarget(long sliceToMerge)Returns the slice state target to merge the given slice into when firing windows.-
Methods inherited from class org.apache.flink.table.runtime.operators.aggregate.asyncwindow.processors.AbstractAsyncStateSliceWindowAggProcessor
advanceProgress, clearWindow, close, createWindowSerializer, getWindowTimerService, open, prepareCheckpoint, processElement
-
Methods inherited from class org.apache.flink.table.runtime.operators.aggregate.asyncwindow.processors.AbstractAsyncStateWindowAggProcessor
prepareAggregator
-
Methods inherited from class org.apache.flink.table.runtime.operators.aggregate.window.processors.WindowAggProcessorBase
collect, 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.WindowProcessor
initializeWatermark
-
-
-
-
Constructor Detail
-
AsyncStateSliceUnsharedWindowAggProcessor
public AsyncStateSliceUnsharedWindowAggProcessor(GeneratedNamespaceAggsHandleFunction<Long> genAggsHandler, AsyncStateWindowBuffer.Factory windowBufferFactory, SliceUnsharedAssigner sliceAssigner, org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> accSerializer, int indexOfCountStar, ZoneId shiftTimeZone)
-
-
Method Detail
-
fireWindow
public org.apache.flink.api.common.state.v2.StateFuture<Void> fireWindow(long timerTimestamp, Long windowEnd) throws Exception
Description copied from interface:AsyncStateWindowProcessorEmit results of the given window.Note: the key context has been set.
- Parameters:
timerTimestamp- the fired timestampwindowEnd- the window to emit- Throws:
Exception
-
sliceStateMergeTarget
protected org.apache.flink.api.common.state.v2.StateFuture<Long> sliceStateMergeTarget(long sliceToMerge) throws Exception
Description copied from class:AbstractAsyncStateSliceWindowAggProcessorReturns the slice state target to merge the given slice into when firing windows. For unshared windows, there should no merging happens, so the merge target should be just the givensliceToMerge. For shared windows, the merge target should be the shared slice state.- Specified by:
sliceStateMergeTargetin classAbstractAsyncStateSliceWindowAggProcessor- Throws:
Exception- See Also:
SliceSharedAssigner.mergeSlices(long, MergeCallback)
-
-