Class WindowAggProcessorBase<W,​C extends WindowProcessor.Context<W>>

    • Field Detail

      • accSerializer

        protected final org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> accSerializer
      • isEventTime

        protected final boolean isEventTime
      • shiftTimeZone

        protected final ZoneId shiftTimeZone
      • useDayLightSaving

        protected final boolean useDayLightSaving
        The shift timezone is using DayLightSaving time or not.
      • currentProgress

        protected transient long currentProgress
      • clockService

        protected transient ClockService clockService
      • reuseOutput

        protected transient org.apache.flink.table.data.utils.JoinedRowData reuseOutput
    • Constructor Detail

      • WindowAggProcessorBase

        public WindowAggProcessorBase​(GeneratedNamespaceAggsHandleFunction<W> genAggsHandler,
                                      org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> accSerializer,
                                      boolean isEventTime,
                                      ZoneId shiftTimeZone)
    • Method Detail

      • initializeWatermark

        public void initializeWatermark​(long watermark)
        Description copied from interface: WindowProcessor
        Initializes the watermark which restores from state. The method is called after open method and before the actual working methods.
        Specified by:
        initializeWatermark in interface WindowProcessor<W,​C extends WindowProcessor.Context<W>>
        Parameters:
        watermark - the initial watermark
      • prepareAggregator

        protected abstract void prepareAggregator()
                                           throws Exception
        Throws:
        Exception
      • collect

        protected void collect​(org.apache.flink.table.data.RowData currentKey,
                               org.apache.flink.table.data.RowData aggResult)
        Send result to downstream.

        The RowKind of the results is always RowKind.INSERT.

        TODO support early fire / late file to produce changelog result.