public final class DeclaredTypeNode extends Object
DeclaredTypeReader from whichever members of
TTypeName the dialect's grammar fills (plan section 4.2): a STRUCT with its fields in declaration order, an
ARRAY with its element, a MAP with its key and value, or a scalar.| Modifier and Type | Class and Description |
|---|---|
static class |
DeclaredTypeNode.Kind |
| Modifier and Type | Method and Description |
|---|---|
DeclaredTypeNode |
getElement()
For an ARRAY its element, for a MAP its value; null when the grammar dropped it.
|
TObjectName |
getFieldName()
For a STRUCT member, the name as the DDL writes it (its token is the field's identity); null otherwise.
|
List<DeclaredTypeNode> |
getFields()
For a STRUCT, its fields in declaration order; null when the grammar kept no member list
(
STRUCT<T>, Databricks ROW(...)), so the fields are not known. |
DeclaredTypeNode |
getKey()
For a MAP its key; null otherwise or when the grammar dropped it.
|
DeclaredTypeNode.Kind |
getKind() |
TTypeName |
getSource()
The type as parsed, for its position.
|
public DeclaredTypeNode.Kind getKind()
public TObjectName getFieldName()
public List<DeclaredTypeNode> getFields()
STRUCT<T>, Databricks ROW(...)), so the fields are not known.public DeclaredTypeNode getElement()
public DeclaredTypeNode getKey()