Enum RexWindowExclusion

java.lang.Object
java.lang.Enum<RexWindowExclusion>
org.apache.calcite.rex.RexWindowExclusion
All Implemented Interfaces:
Serializable, Comparable<RexWindowExclusion>, Constable

public enum RexWindowExclusion extends Enum<RexWindowExclusion>
Representation of different kinds of exclude clause in window functions.
  • Enum Constant Details

  • Method Details

    • values

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

      public static RexWindowExclusion valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<RexWindowExclusion>
    • create

      public static RexWindowExclusion create(SqlNode node)
      Creates a window exclusion from a SqlNode.
      Parameters:
      node - SqlLiteral of the exclusion clause
      Returns:
      RexWindowExclusion