@Public public enum DataTypeRoot extends Enum<DataTypeRoot>
A root is an essential description of a DataType
without additional parameters. For
example, a parameterized Data type DECIMAL(12,3)
possesses all characteristics of its
root DECIMAL
. Additionally, a Data type root enables efficient comparison during the
evaluation of types.
See the type-implementing classes for a more detailed description of each type.
Note to implementers: Whenever we perform a match against a type root (e.g. using a switch/case statement), it is recommended to:
Enum Constant and Description |
---|
ARRAY |
BIGINT |
BINARY |
BOOLEAN |
CHAR |
DATE |
DECIMAL |
DOUBLE |
FLOAT |
INTEGER |
MAP |
MULTISET |
ROW |
SMALLINT |
TIME_WITHOUT_TIME_ZONE |
TIMESTAMP_WITH_LOCAL_TIME_ZONE |
TIMESTAMP_WITHOUT_TIME_ZONE |
TINYINT |
VARBINARY |
VARCHAR |
Modifier and Type | Method and Description |
---|---|
Set<DataTypeFamily> |
getFamilies() |
static DataTypeRoot |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataTypeRoot[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataTypeRoot CHAR
public static final DataTypeRoot VARCHAR
public static final DataTypeRoot BOOLEAN
public static final DataTypeRoot BINARY
public static final DataTypeRoot VARBINARY
public static final DataTypeRoot DECIMAL
public static final DataTypeRoot TINYINT
public static final DataTypeRoot SMALLINT
public static final DataTypeRoot INTEGER
public static final DataTypeRoot BIGINT
public static final DataTypeRoot FLOAT
public static final DataTypeRoot DOUBLE
public static final DataTypeRoot DATE
public static final DataTypeRoot TIME_WITHOUT_TIME_ZONE
public static final DataTypeRoot TIMESTAMP_WITHOUT_TIME_ZONE
public static final DataTypeRoot TIMESTAMP_WITH_LOCAL_TIME_ZONE
public static final DataTypeRoot ARRAY
public static final DataTypeRoot MULTISET
public static final DataTypeRoot MAP
public static final DataTypeRoot ROW
public static DataTypeRoot[] values()
for (DataTypeRoot c : DataTypeRoot.values()) System.out.println(c);
public static DataTypeRoot valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Set<DataTypeFamily> getFamilies()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.