Enum Class VariantType
- All Implemented Interfaces:
Serializable, Comparable<VariantType>, Constable
Logical type of a Variant value, as carried in the Variant binary encoding's
value header. Distinct from
PhysicalType — Variant has
its own tagged type space that lives inside the value byte buffer.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionArray — ordered collection of Variant values.Opaque byte sequence.Booleanfalse.Booleantrue.Date (days since Unix epoch).Decimal with up to 38 digits (stored as 128-bit unscaled + scale).Decimal with up to 9 digits (stored as 32-bit unscaled + scale).Decimal with up to 18 digits (stored as 64-bit unscaled + scale).IEEE 64-bit floating point.IEEE 32-bit floating point.16-bit signed integer.32-bit signed integer.64-bit signed integer.8-bit signed integer.SQL NULL.Object — string-keyed collection of Variant values.UTF-8 string.Time of day with microsecond precision, no timezone.Timestamp with microsecond precision, UTC-adjusted.Timestamp with nanosecond precision, UTC-adjusted.Timestamp with microsecond precision, no timezone.Timestamp with nanosecond precision, no timezone.UUID stored as 16 bytes (big-endian). -
Method Summary
Modifier and TypeMethodDescriptionstatic VariantTypeReturns the enum constant of this class with the specified name.static VariantType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NULL
SQL NULL. -
BOOLEAN_TRUE
Booleantrue. -
BOOLEAN_FALSE
Booleanfalse. -
INT8
8-bit signed integer. -
INT16
16-bit signed integer. -
INT32
32-bit signed integer. -
INT64
64-bit signed integer. -
DOUBLE
IEEE 64-bit floating point. -
DECIMAL4
Decimal with up to 9 digits (stored as 32-bit unscaled + scale). -
DECIMAL8
Decimal with up to 18 digits (stored as 64-bit unscaled + scale). -
DECIMAL16
Decimal with up to 38 digits (stored as 128-bit unscaled + scale). -
DATE
Date (days since Unix epoch). -
TIMESTAMP
Timestamp with microsecond precision, UTC-adjusted. -
TIMESTAMP_NTZ
Timestamp with microsecond precision, no timezone. -
FLOAT
IEEE 32-bit floating point. -
BINARY
Opaque byte sequence. -
STRING
UTF-8 string. -
TIME_NTZ
Time of day with microsecond precision, no timezone. -
TIMESTAMP_NANOS
Timestamp with nanosecond precision, UTC-adjusted. -
TIMESTAMP_NTZ_NANOS
Timestamp with nanosecond precision, no timezone. -
UUID
UUID stored as 16 bytes (big-endian). -
OBJECT
Object — string-keyed collection of Variant values. -
ARRAY
Array — ordered collection of Variant values.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-