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,
org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.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, open, prepareCheckpoint, processElementpublic 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)
public void fireWindow(Long windowEnd) throws Exception
SlicingWindowProcessorNote: the key context has been set.
windowEnd - the window to emitExceptionprotected long sliceStateMergeTarget(long sliceToMerge)
throws Exception
AbstractWindowAggProcessorsliceToMerge. For shared windows, the merge target should be the shared slice
state.sliceStateMergeTarget in class AbstractWindowAggProcessorExceptionSliceSharedAssigner.mergeSlices(long, SliceSharedAssigner.MergeCallback)Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.