Enum Class TimestampCombiner

java.lang.Object
java.lang.Enum<TimestampCombiner>
org.apache.beam.sdk.transforms.windowing.TimestampCombiner
All Implemented Interfaces:
Serializable, Comparable<TimestampCombiner>, Constable

public enum TimestampCombiner extends Enum<TimestampCombiner>
Policies for combining timestamps that occur within a window.

In particular, these govern the timestamp on the output of a grouping transform such as GroupByKey or Combine.

  • Enum Constant Details

    • EARLIEST

      public static final TimestampCombiner EARLIEST
      The policy of taking at the earliest of a set of timestamps.

      When used in windowed aggregations, the timestamps of non-late inputs will be combined after they are shifted by the WindowFn (to allow downstream watermark progress).

      If data arrives late, it has no effect on the output timestamp.

    • LATEST

      public static final TimestampCombiner LATEST
      The policy of taking the latest of a set of timestamps.

      When used in windowed aggregations, the timestamps of non-late inputs will be combined after they are shifted by the WindowFn (to allow downstream watermark progress).

      If data arrives late, it has no effect on the output timestamp.

    • END_OF_WINDOW

      public static final TimestampCombiner END_OF_WINDOW
      The policy of using the end of the window, regardless of input timestamps.

      When used in windowed aggregations, the timestamps of non-late inputs will be combined after they are shifted by the WindowFn (to allow downstream watermark progress).

      If data arrives late, it has no effect on the output timestamp.

  • Method Details