Class AscendingTimestampExtractor<T>

  • Type Parameters:
    T - The type of the elements that this function can extract timestamps from
    All Implemented Interfaces:
    Serializable, org.apache.flink.api.common.eventtime.TimestampAssigner<T>, org.apache.flink.api.common.eventtime.TimestampAssignerSupplier<T>, org.apache.flink.api.common.eventtime.WatermarkGeneratorSupplier<T>, org.apache.flink.api.common.eventtime.WatermarkStrategy<T>, org.apache.flink.streaming.runtime.operators.util.WatermarkStrategyWithPeriodicWatermarks<T>

    @Deprecated
    @PublicEvolving
    public abstract class AscendingTimestampExtractor<T>
    extends Object
    implements org.apache.flink.streaming.runtime.operators.util.WatermarkStrategyWithPeriodicWatermarks<T>
    Deprecated.
    A timestamp assigner and watermark generator for streams where timestamps are monotonously ascending. In this case, the local watermarks for the streams are easy to generate, because they strictly follow the timestamps.
    See Also:
    Serialized Form
    • Constructor Detail

      • AscendingTimestampExtractor

        public AscendingTimestampExtractor()
        Deprecated.
    • Method Detail

      • extractAscendingTimestamp

        public abstract long extractAscendingTimestamp​(T element)
        Deprecated.
        Extracts the timestamp from the given element. The timestamp must be monotonically increasing.
        Parameters:
        element - The element that the timestamp is extracted from.
        Returns:
        The new timestamp.
      • extractTimestamp

        public final long extractTimestamp​(T element,
                                           long elementPrevTimestamp)
        Deprecated.
        Specified by:
        extractTimestamp in interface org.apache.flink.api.common.eventtime.TimestampAssigner<T>
      • getCurrentWatermark

        public final org.apache.flink.streaming.api.watermark.Watermark getCurrentWatermark()
        Deprecated.
        Specified by:
        getCurrentWatermark in interface org.apache.flink.streaming.runtime.operators.util.WatermarkStrategyWithPeriodicWatermarks<T>