public final class SliceUnsharedWindowAggProcessor extends AbstractSliceWindowAggProcessor
SliceUnsharedAssigner, e.g.
tumbling windows.AbstractWindowAggProcessor.WindowIsEmptySupplierWindowProcessor.Context<W>sliceAssigner, windowBuffer, windowBufferFactory, windowIntervalaccSerializer, aggregator, clockService, ctx, currentProgress, emptySupplier, genAggsHandler, isEventTime, reuseOutput, shiftTimeZone, useDayLightSaving, windowState, windowTimerService| Constructor and Description |
|---|
SliceUnsharedWindowAggProcessor(GeneratedNamespaceAggsHandleFunction<Long> genAggsHandler,
WindowBuffer.Factory windowBufferFactory,
SliceUnsharedAssigner sliceAssigner,
org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> accSerializer,
int indexOfCountStar,
java.time.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, processElementcollect, initializeWatermarkclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeWatermarkpublic SliceUnsharedWindowAggProcessor(GeneratedNamespaceAggsHandleFunction<Long> genAggsHandler, WindowBuffer.Factory windowBufferFactory, SliceUnsharedAssigner sliceAssigner, org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> accSerializer, int indexOfCountStar, java.time.ZoneId shiftTimeZone)
public void fireWindow(long timerTimestamp,
Long windowEnd)
throws Exception
WindowProcessorNote: the key context has been set.
timerTimestamp - the fired timestampwindowEnd - the window to emitExceptionprotected long sliceStateMergeTarget(long sliceToMerge)
throws Exception
AbstractSliceWindowAggProcessorsliceToMerge. For shared windows, the merge target should be the shared slice
state.sliceStateMergeTarget in class AbstractSliceWindowAggProcessorExceptionSliceSharedAssigner.mergeSlices(long, MergeCallback)Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.