Enum Class Window.OnTimeBehavior

java.lang.Object
java.lang.Enum<Window.OnTimeBehavior>
org.apache.beam.sdk.transforms.windowing.Window.OnTimeBehavior
All Implemented Interfaces:
Serializable, Comparable<Window.OnTimeBehavior>, Constable
Enclosing class:
Window<T>

public static enum Window.OnTimeBehavior extends Enum<Window.OnTimeBehavior>
Specifies the conditions under which an on-time pane will be created when a window is closed.
  • Enum Constant Details

    • FIRE_ALWAYS

      public static final Window.OnTimeBehavior FIRE_ALWAYS
      Always fire the on-time pane. Even if there is no new data since the previous firing, an element will be produced.

      This is the default behavior.

    • FIRE_IF_NON_EMPTY

      public static final Window.OnTimeBehavior FIRE_IF_NON_EMPTY
      Only fire the on-time pane if there is new data since the previous firing.
  • Method Details

    • values

      public static Window.OnTimeBehavior[] 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 Window.OnTimeBehavior 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