Class RowTimeWindowDeduplicateProcessor

    • 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<Long>
        Parameters:
        watermark - the initial watermark
      • processElement

        public boolean processElement​(RowData key,
                                      RowData element)
                               throws Exception
        Description copied from interface: WindowProcessor
        Process an element with associated key from the input stream. Returns true if this element is dropped because of late arrival.
        Specified by:
        processElement in interface WindowProcessor<Long>
        Parameters:
        key - the key associated with the element
        element - The element to process.
        Throws:
        Exception
      • advanceProgress

        public void advanceProgress​(long progress)
                             throws Exception
        Description copied from interface: WindowProcessor
        Advances the progress time, the progress time is watermark if working in event-time mode, or current processing time if working in processing-time mode.

        This will potentially flush buffered data into states, because the watermark advancement may be in a very small step, but we don't need to flush buffered data for every watermark advancement.

        Specified by:
        advanceProgress in interface WindowProcessor<Long>
        Parameters:
        progress - the current progress time
        Throws:
        Exception
      • clearWindow

        public void clearWindow​(long timerTimestamp,
                                Long windowEnd)
                         throws Exception
        Description copied from interface: WindowProcessor
        Clear state and resources associated with the given window namespace.

        Note: the key context has been set.

        Specified by:
        clearWindow in interface WindowProcessor<Long>
        Parameters:
        timerTimestamp - the fired timestamp
        windowEnd - the window to clear
        Throws:
        Exception
      • fireWindow

        public void fireWindow​(long timerTimestamp,
                               Long windowEnd)
                        throws Exception
        Description copied from interface: WindowProcessor
        Emit results of the given window.

        Note: the key context has been set.

        Specified by:
        fireWindow in interface WindowProcessor<Long>
        Parameters:
        timerTimestamp - the fired timestamp
        windowEnd - the window to emit
        Throws:
        Exception