Enum StructKind

Object
Enum<StructKind>
gudusoft.gsqlparser.resolver2.StructKind
All Implemented Interfaces:
Serializable, Comparable<StructKind>, java.lang.constant.Constable

public enum StructKind extends Enum<StructKind>
Defines how fields of a structured type are accessed. Based on Apache Calcite's StructKind.
  • Enum Constant Details

    • FULLY_QUALIFIED

      public static final StructKind FULLY_QUALIFIED
      Fully qualified access required. Example: SELECT table.column FROM table
    • PEEK_FIELDS

      public static final StructKind PEEK_FIELDS
      Fields are implicitly available without qualification. Example: In FROM (SELECT id, name FROM users) t, the fields id and name are implicitly available.
    • PEEK_FIELDS_DEFAULT

      public static final StructKind PEEK_FIELDS_DEFAULT
      Fields must be accessed via the qualifier. Example: SELECT t.* FROM table t
    • NONE

      public static final StructKind NONE
      No special struct semantics.
  • Method Details

    • values

      public static StructKind[] 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 StructKind 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