Class SliceUnsharedWindowAggProcessor
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.aggregate.window.processors.AbstractWindowAggProcessor
-
- org.apache.flink.table.runtime.operators.aggregate.window.processors.SliceUnsharedWindowAggProcessor
-
- All Implemented Interfaces:
Serializable,SlicingWindowProcessor<Long>
public final class SliceUnsharedWindowAggProcessor extends AbstractWindowAggProcessor
An window aggregate processor implementation which works forSliceUnsharedAssigner, e.g. tumbling windows.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.table.runtime.operators.window.slicing.SlicingWindowProcessor
SlicingWindowProcessor.Context<W>
-
-
Field Summary
-
Fields inherited from class org.apache.flink.table.runtime.operators.aggregate.window.processors.AbstractWindowAggProcessor
accSerializer, aggregator, clockService, ctx, currentProgress, genAggsHandler, isEventTime, reuseOutput, shiftTimeZone, sliceAssigner, useDayLightSaving, windowBuffer, windowBufferFactory, windowInterval, windowState, windowTimerService
-
-
Constructor Summary
Constructors Constructor Description SliceUnsharedWindowAggProcessor(GeneratedNamespaceAggsHandleFunction<Long> genAggsHandler, WindowBuffer.Factory windowBufferFactory, SliceUnsharedAssigner sliceAssigner, org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> accSerializer, java.time.ZoneId shiftTimeZone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfireWindow(Long windowEnd)Emit results of the given window.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.AbstractWindowAggProcessor
advanceProgress, clearWindow, close, collect, createWindowSerializer, initializeWatermark, open, prepareCheckpoint, processElement
-
-
-
-
Constructor Detail
-
SliceUnsharedWindowAggProcessor
public SliceUnsharedWindowAggProcessor(GeneratedNamespaceAggsHandleFunction<Long> genAggsHandler, WindowBuffer.Factory windowBufferFactory, SliceUnsharedAssigner sliceAssigner, org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> accSerializer, java.time.ZoneId shiftTimeZone)
-
-
Method Detail
-
fireWindow
public void fireWindow(Long windowEnd) throws Exception
Description copied from interface:SlicingWindowProcessorEmit results of the given window.Note: the key context has been set.
- Parameters:
windowEnd- the window to emit- Throws:
Exception
-
sliceStateMergeTarget
protected long sliceStateMergeTarget(long sliceToMerge) throws ExceptionDescription copied from class:AbstractWindowAggProcessorReturns 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 classAbstractWindowAggProcessor- Throws:
Exception- See Also:
SliceSharedAssigner.mergeSlices(long, SliceSharedAssigner.MergeCallback)
-
-