Class SliceSharedSyncStateWindowAggProcessor
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<Long>
org.apache.flink.table.runtime.operators.aggregate.window.processors.AbstractSliceSyncStateWindowAggProcessor
org.apache.flink.table.runtime.operators.aggregate.window.processors.SliceSharedSyncStateWindowAggProcessor
- All Implemented Interfaces:
Serializable,MergeCallback<Long,,Iterable<Long>> SyncStateWindowProcessor<Long>,WindowProcessor<Long,,SyncStateWindowProcessor.SyncStateContext<Long>> SlicingSyncStateWindowProcessor<Long>
public final class SliceSharedSyncStateWindowAggProcessor
extends AbstractSliceSyncStateWindowAggProcessor
implements MergeCallback<Long,Iterable<Long>>
A window aggregate processor implementation which works for
SliceSharedAssigner, e.g.
hopping windows and cumulative windows.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.table.runtime.operators.aggregate.window.processors.AbstractSyncStateWindowAggProcessor
AbstractSyncStateWindowAggProcessor.WindowIsEmptySupplierNested 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 inherited from class org.apache.flink.table.runtime.operators.aggregate.window.processors.AbstractSliceSyncStateWindowAggProcessor
sliceAssigner, windowBuffer, windowBufferFactory, windowIntervalFields inherited from class org.apache.flink.table.runtime.operators.aggregate.window.processors.AbstractSyncStateWindowAggProcessor
emptySupplier, windowStateFields 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
ConstructorsConstructorDescriptionSliceSharedSyncStateWindowAggProcessor(GeneratedNamespaceAggsHandleFunction<Long> genAggsHandler, WindowBuffer.Factory bufferFactory, SliceSharedAssigner sliceAssigner, org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> accSerializer, int indexOfCountStar, ZoneId shiftTimeZone) -
Method Summary
Modifier and TypeMethodDescriptionvoidfireWindow(long timerTimestamp, Long windowEnd) Emit results of the given window.voidSpecifies that states of the given windows or slices should be merged into the result window or slice.protected longsliceStateMergeTarget(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.window.processors.AbstractSliceSyncStateWindowAggProcessor
advanceProgress, clearWindow, close, createWindowSerializer, getWindowTimerService, open, prepareCheckpoint, processElementMethods inherited from class org.apache.flink.table.runtime.operators.aggregate.window.processors.AbstractSyncStateWindowAggProcessor
collect, prepareAggregatorMethods inherited from class org.apache.flink.table.runtime.operators.aggregate.window.processors.WindowAggProcessorBase
collect, 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.WindowProcessor
initializeWatermark
-
Constructor Details
-
Method Details
-
fireWindow
Description copied from interface:SyncStateWindowProcessorEmit results of the given window.Note: the key context has been set.
- Specified by:
fireWindowin interfaceSyncStateWindowProcessor<Long>- Parameters:
timerTimestamp- the fired timestampwindowEnd- the window to emit- Throws:
Exception
-
merge
Description copied from interface:MergeCallbackSpecifies that states of the given windows or slices should be merged into the result window or slice. -
sliceStateMergeTarget
Description copied from class:AbstractSliceSyncStateWindowAggProcessorReturns 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 classAbstractSliceSyncStateWindowAggProcessor- Throws:
Exception- See Also:
-