Enum Class TimeDomain

java.lang.Object
java.lang.Enum<TimeDomain>
org.apache.beam.sdk.state.TimeDomain
All Implemented Interfaces:
Serializable, Comparable<TimeDomain>, Constable

public enum TimeDomain extends Enum<TimeDomain>
TimeDomain specifies whether an operation is based on timestamps of elements or current "real-world" time as reported while processing.
  • Enum Constant Details

    • EVENT_TIME

      public static final TimeDomain EVENT_TIME
      The EVENT_TIME domain corresponds to the timestamps on the elements. Time advances on the system watermark advances.
    • PROCESSING_TIME

      public static final TimeDomain PROCESSING_TIME
      The PROCESSING_TIME domain corresponds to the current (system) time. This is advanced during execution of the pipeline.
    • SYNCHRONIZED_PROCESSING_TIME

      @Internal public static final TimeDomain SYNCHRONIZED_PROCESSING_TIME
      For internal use only; no backwards compatibility guarantees.

      Same as the PROCESSING_TIME domain, except it won't fire a timer set for time t until all timers from earlier stages set for a time earlier than t have fired.

  • Method Details

    • values

      public static TimeDomain[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TimeDomain valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null