Enum Class Window.ClosingBehavior

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

public static enum Window.ClosingBehavior extends Enum<Window.ClosingBehavior>
Specifies the conditions under which a final pane will be created when a window is permanently closed.
  • Enum Constant Details

    • FIRE_ALWAYS

      public static final Window.ClosingBehavior FIRE_ALWAYS
      Always fire the last pane. Even if there is no new data since the previous firing, an element with PaneInfo.isLast() true will be produced.
    • FIRE_IF_NON_EMPTY

      public static final Window.ClosingBehavior FIRE_IF_NON_EMPTY
      Only fire the last pane if there is new data since the previous firing.

      This is the default behavior.

  • Method Details

    • values

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