Class WatermarkGenerator

  • All Implemented Interfaces:
    Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.RichFunction
    Direct Known Subclasses:
    BoundedOutOfOrderWatermarkGenerator

    public abstract class WatermarkGenerator
    extends org.apache.flink.api.common.functions.AbstractRichFunction
    The WatermarkGenerator is used to generate watermark based the input elements.
    See Also:
    Serialized Form
    • Constructor Detail

      • WatermarkGenerator

        public WatermarkGenerator()
    • Method Detail

      • currentWatermark

        @Nullable
        public abstract Long currentWatermark​(org.apache.flink.table.data.RowData row)
                                       throws Exception
        Returns the watermark for the current row or null if no watermark should be generated.
        Parameters:
        row - The current row.
        Returns:
        The watermark for this row or null if no watermark should be generated.
        Throws:
        Exception