Enum Class VariantType

java.lang.Object
java.lang.Enum<VariantType>
dev.hardwood.row.VariantType
All Implemented Interfaces:
Serializable, Comparable<VariantType>, Constable

public enum VariantType extends Enum<VariantType>
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:
  • Enum Constant Details

    • NULL

      public static final VariantType NULL
      SQL NULL.
    • BOOLEAN_TRUE

      public static final VariantType BOOLEAN_TRUE
      Boolean true.
    • BOOLEAN_FALSE

      public static final VariantType BOOLEAN_FALSE
      Boolean false.
    • INT8

      public static final VariantType INT8
      8-bit signed integer.
    • INT16

      public static final VariantType INT16
      16-bit signed integer.
    • INT32

      public static final VariantType INT32
      32-bit signed integer.
    • INT64

      public static final VariantType INT64
      64-bit signed integer.
    • DOUBLE

      public static final VariantType DOUBLE
      IEEE 64-bit floating point.
    • DECIMAL4

      public static final VariantType DECIMAL4
      Decimal with up to 9 digits (stored as 32-bit unscaled + scale).
    • DECIMAL8

      public static final VariantType DECIMAL8
      Decimal with up to 18 digits (stored as 64-bit unscaled + scale).
    • DECIMAL16

      public static final VariantType DECIMAL16
      Decimal with up to 38 digits (stored as 128-bit unscaled + scale).
    • DATE

      public static final VariantType DATE
      Date (days since Unix epoch).
    • TIMESTAMP

      public static final VariantType TIMESTAMP
      Timestamp with microsecond precision, UTC-adjusted.
    • TIMESTAMP_NTZ

      public static final VariantType TIMESTAMP_NTZ
      Timestamp with microsecond precision, no timezone.
    • FLOAT

      public static final VariantType FLOAT
      IEEE 32-bit floating point.
    • BINARY

      public static final VariantType BINARY
      Opaque byte sequence.
    • STRING

      public static final VariantType STRING
      UTF-8 string.
    • TIME_NTZ

      public static final VariantType TIME_NTZ
      Time of day with microsecond precision, no timezone.
    • TIMESTAMP_NANOS

      public static final VariantType TIMESTAMP_NANOS
      Timestamp with nanosecond precision, UTC-adjusted.
    • TIMESTAMP_NTZ_NANOS

      public static final VariantType TIMESTAMP_NTZ_NANOS
      Timestamp with nanosecond precision, no timezone.
    • UUID

      public static final VariantType UUID
      UUID stored as 16 bytes (big-endian).
    • OBJECT

      public static final VariantType OBJECT
      Object — string-keyed collection of Variant values.
    • ARRAY

      public static final VariantType ARRAY
      Array — ordered collection of Variant values.
  • Method Details

    • values

      public static VariantType[] 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

      public static VariantType valueOf(String name)
      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 name
      NullPointerException - if the argument is null