public enum StructKind extends Enum<StructKind>
The usual value is
A field whose record type is labeled
PEEK_FIELDS can be omitted.
In Phoenix, column families are represented by fields like this.
PEEK_FIELDS_DEFAULT is similar, but represents the default column
family, so it will win in the event of a tie.
SQL usually disallows a record type. For instance,
SELECT address.zip FROM Emp AS e
is disallowed because
address "looks like" a table alias. You'd
have to write
SELECT e.address.zip FROM Emp AS e
If there are multiple matches, we choose the one that is:
address.zipcodewill be preferred over
PEEK_FIELDS_DEFAULTat some point, which will beat one that uses
PEEK_FIELDSat some point.
This is a traditional structured type, where each field must be referenced explicitly.
This is not a structured type.
If a field has this type, you can see its fields without qualifying them with the name of this field.
|Modifier and Type||Method||Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final StructKind NONE
public static final StructKind FULLY_QUALIFIED
Also, when referencing a struct column, you
need to qualify it with the table alias, per standard SQL. For instance,
SELECT c.address.zipcode FROM customer AS c
is valid but
SELECT address.zipcode FROM customer
it not valid.
public static final StructKind PEEK_FIELDS_DEFAULT
PEEK_FIELDS, but takes priority if another struct-typed field also has a field of the name being sought.
In Phoenix, only one of a table's columns is labeled
PEEK_FIELDS_DEFAULT - the default column family - but in principle
there could be more than one.
public static final StructKind PEEK_FIELDS
For example, if
address is labeled
zipcode as shorthand for
public static StructKind values()
for (StructKind c : StructKind.values()) System.out.println(c);
public static StructKind valueOf(String name)
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.