Enum Class ConvertedType

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

public enum ConvertedType extends Enum<ConvertedType>
Legacy converted types in Parquet schema (used by PyArrow for LIST/MAP annotation).
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    BSON document stored as a byte array.
    Calendar date (days since Unix epoch), stored as INT32.
    Decimal with scale and precision stored in the schema element.
    Enum stored as a UTF-8 string.
    Signed 16-bit integer, stored as INT32.
    Signed 32-bit integer, stored as INT32.
    Signed 64-bit integer, stored as INT64.
    Signed 8-bit integer, stored as INT32.
    Interval stored as a 12-byte fixed-length byte array.
    JSON document stored as a UTF-8 string.
    List of elements.
    Map of key-value pairs.
    Intermediate group inside a MAP; contains key and value fields.
    Time of day in microseconds, stored as INT64.
    Time of day in milliseconds, stored as INT32.
    Timestamp in microseconds since Unix epoch, stored as INT64.
    Timestamp in milliseconds since Unix epoch, stored as INT64.
    Unsigned 16-bit integer, stored as INT32.
    Unsigned 32-bit integer, stored as INT32.
    Unsigned 64-bit integer, stored as INT64.
    Unsigned 8-bit integer, stored as INT32.
    UTF-8 encoded character string.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static ConvertedType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • UTF8

      public static final ConvertedType UTF8
      UTF-8 encoded character string.
    • MAP

      public static final ConvertedType MAP
      Map of key-value pairs.
    • MAP_KEY_VALUE

      public static final ConvertedType MAP_KEY_VALUE
      Intermediate group inside a MAP; contains key and value fields.
    • LIST

      public static final ConvertedType LIST
      List of elements.
    • ENUM

      public static final ConvertedType ENUM
      Enum stored as a UTF-8 string.
    • DECIMAL

      public static final ConvertedType DECIMAL
      Decimal with scale and precision stored in the schema element.
    • DATE

      public static final ConvertedType DATE
      Calendar date (days since Unix epoch), stored as INT32.
    • TIME_MILLIS

      public static final ConvertedType TIME_MILLIS
      Time of day in milliseconds, stored as INT32.
    • TIME_MICROS

      public static final ConvertedType TIME_MICROS
      Time of day in microseconds, stored as INT64.
    • TIMESTAMP_MILLIS

      public static final ConvertedType TIMESTAMP_MILLIS
      Timestamp in milliseconds since Unix epoch, stored as INT64.
    • TIMESTAMP_MICROS

      public static final ConvertedType TIMESTAMP_MICROS
      Timestamp in microseconds since Unix epoch, stored as INT64.
    • UINT_8

      public static final ConvertedType UINT_8
      Unsigned 8-bit integer, stored as INT32.
    • UINT_16

      public static final ConvertedType UINT_16
      Unsigned 16-bit integer, stored as INT32.
    • UINT_32

      public static final ConvertedType UINT_32
      Unsigned 32-bit integer, stored as INT32.
    • UINT_64

      public static final ConvertedType UINT_64
      Unsigned 64-bit integer, stored as INT64.
    • INT_8

      public static final ConvertedType INT_8
      Signed 8-bit integer, stored as INT32.
    • INT_16

      public static final ConvertedType INT_16
      Signed 16-bit integer, stored as INT32.
    • INT_32

      public static final ConvertedType INT_32
      Signed 32-bit integer, stored as INT32.
    • INT_64

      public static final ConvertedType INT_64
      Signed 64-bit integer, stored as INT64.
    • JSON

      public static final ConvertedType JSON
      JSON document stored as a UTF-8 string.
    • BSON

      public static final ConvertedType BSON
      BSON document stored as a byte array.
    • INTERVAL

      public static final ConvertedType INTERVAL
      Interval stored as a 12-byte fixed-length byte array.
  • Method Details

    • values

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