Class ProgressiveTimestampsAndWatermarks<T>

  • Type Parameters:
    T - The type of the emitted records.
    All Implemented Interfaces:
    TimestampsAndWatermarks<T>

    @Internal
    public class ProgressiveTimestampsAndWatermarks<T>
    extends Object
    implements TimestampsAndWatermarks<T>
    An implementation of TimestampsAndWatermarks that does periodic watermark emission and keeps track of watermarks on a per-split basis. This should be used in execution contexts where watermarks are important for efficiency/correctness, for example in STREAMING execution mode.
    • Constructor Detail

      • ProgressiveTimestampsAndWatermarks

        public ProgressiveTimestampsAndWatermarks​(org.apache.flink.api.common.eventtime.TimestampAssigner<T> timestampAssigner,
                                                  org.apache.flink.api.common.eventtime.WatermarkGeneratorSupplier<T> watermarksFactory,
                                                  org.apache.flink.api.common.eventtime.WatermarkGeneratorSupplier.Context watermarksContext,
                                                  ProcessingTimeService timeService,
                                                  java.time.Duration periodicWatermarkInterval)