public final class SliceUnsharedWindowAggProcessor extends AbstractSliceWindowAggProcessor
SliceUnsharedAssigner
, e.g.
tumbling windows.AbstractWindowAggProcessor.WindowIsEmptySupplier
WindowProcessor.Context<W>
sliceAssigner, windowBuffer, windowBufferFactory, windowInterval
accSerializer, aggregator, clockService, ctx, currentProgress, emptySupplier, genAggsHandler, isEventTime, reuseOutput, shiftTimeZone, useDayLightSaving, windowState, windowTimerService
Constructor and Description |
---|
SliceUnsharedWindowAggProcessor(GeneratedNamespaceAggsHandleFunction<Long> genAggsHandler,
WindowBuffer.Factory windowBufferFactory,
SliceUnsharedAssigner sliceAssigner,
TypeSerializer<RowData> accSerializer,
int indexOfCountStar,
ZoneId shiftTimeZone) |
Modifier and Type | Method and Description |
---|---|
void |
fireWindow(long timerTimestamp,
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, createWindowSerializer, getWindowTimerService, open, prepareCheckpoint, processElement
collect, initializeWatermark
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeWatermark
public SliceUnsharedWindowAggProcessor(GeneratedNamespaceAggsHandleFunction<Long> genAggsHandler, WindowBuffer.Factory windowBufferFactory, SliceUnsharedAssigner sliceAssigner, TypeSerializer<RowData> accSerializer, int indexOfCountStar, ZoneId shiftTimeZone)
public void fireWindow(long timerTimestamp, Long windowEnd) throws Exception
WindowProcessor
Note: the key context has been set.
timerTimestamp
- the fired timestampwindowEnd
- the window to emitException
protected long sliceStateMergeTarget(long sliceToMerge) throws Exception
AbstractSliceWindowAggProcessor
sliceToMerge
. For shared windows, the merge target should be the shared slice
state.sliceStateMergeTarget
in class AbstractSliceWindowAggProcessor
Exception
SliceSharedAssigner.mergeSlices(long, MergeCallback)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.