Package gudusoft.gsqlparser.resolver2
Enum StructKind
- All Implemented Interfaces:
Serializable,Comparable<StructKind>,java.lang.constant.Constable
Defines how fields of a structured type are accessed.
Based on Apache Calcite's StructKind.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFully qualified access required.No special struct semantics.Fields are implicitly available without qualification.Fields must be accessed via the qualifier. -
Method Summary
Modifier and TypeMethodDescriptionstatic StructKindReturns the enum constant of this type with the specified name.static StructKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FULLY_QUALIFIED
Fully qualified access required. Example: SELECT table.column FROM table -
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
Fields must be accessed via the qualifier. Example: SELECT t.* FROM table t -
NONE
No special struct semantics.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-