public final class SliceUnsharedWindowAggProcessor extends AbstractWindowAggProcessor
SliceUnsharedAssigner
, e.g.
tumbling windows.SlicingWindowProcessor.Context<W>
accSerializer, aggregator, clockService, ctx, currentProgress, genAggsHandler, isEventTime, reuseOutput, shiftTimeZone, sliceAssigner, useDayLightSaving, windowBuffer, windowBufferFactory, windowInterval, windowState, windowTimerService
Constructor and Description |
---|
SliceUnsharedWindowAggProcessor(GeneratedNamespaceAggsHandleFunction<Long> genAggsHandler,
WindowBuffer.Factory windowBufferFactory,
SliceUnsharedAssigner sliceAssigner,
TypeSerializer<RowData> accSerializer,
java.time.ZoneId shiftTimeZone) |
Modifier and Type | Method and Description |
---|---|
void |
fireWindow(Long windowEnd)
Emit results of the given window.
|
protected long |
sliceStateMergeTarget(long sliceToMerge)
Returns the slice state target to merge the given slice into when firing windows.
|
advanceProgress, clearWindow, close, collect, createWindowSerializer, initializeWatermark, open, prepareCheckpoint, processElement
public SliceUnsharedWindowAggProcessor(GeneratedNamespaceAggsHandleFunction<Long> genAggsHandler, WindowBuffer.Factory windowBufferFactory, SliceUnsharedAssigner sliceAssigner, TypeSerializer<RowData> accSerializer, java.time.ZoneId shiftTimeZone)
public void fireWindow(Long windowEnd) throws Exception
SlicingWindowProcessor
Note: the key context has been set.
windowEnd
- the window to emitException
protected long sliceStateMergeTarget(long sliceToMerge) throws Exception
AbstractWindowAggProcessor
sliceToMerge
. For shared windows, the merge target should be the shared slice
state.sliceStateMergeTarget
in class AbstractWindowAggProcessor
Exception
SliceSharedAssigner.mergeSlices(long, SliceSharedAssigner.MergeCallback)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.