Enum ConvertedType

java.lang.Object
java.lang.Enum<ConvertedType>
org.apache.parquet.format.ConvertedType
All Implemented Interfaces:
Serializable, Comparable<ConvertedType>, org.apache.thrift.TEnum

@Generated(value="Autogenerated by Thrift Compiler (0.23.0)", date="2026-08-06") public enum ConvertedType extends Enum<ConvertedType> implements org.apache.thrift.TEnum
DEPRECATED: Common types used by frameworks (e.g. Hive, Pig) using parquet. ConvertedType is superseded by LogicalType. This enum should not be extended. See LogicalTypes.md for conversion between ConvertedType and LogicalType.
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    An embedded BSON document A BSON document embedded within a single BYTE_ARRAY column.
    A Date Stored as days since Unix epoch, encoded as the INT32 physical type.
    A decimal value.
    an enum is converted into a BYTE_ARRAY field
     
     
     
    A signed integer value.
    An interval of time This type annotates data stored as a FIXED_LEN_BYTE_ARRAY of length 12 This data is composed of three separate little endian unsigned integers.
    An embedded JSON document A JSON document embedded within a single UTF8 column.
    a list is converted into an optional field containing a repeated field for its values
    a map is converted as an optional field containing a repeated key/value pair
    a key/value pair is converted into a group of two fields
    A time.
    A time The total number of milliseconds since midnight.
    A date/time combination Date and time recorded as microseconds since the Unix epoch.
    A date/time combination Date and time recorded as milliseconds since the Unix epoch.
     
     
     
    An unsigned integer value.
    a BYTE_ARRAY actually contains UTF8 encoded chars
  • Method Summary

    Modifier and Type
    Method
    Description
    findByValue(int value)
    Find a the enum type by its integer value, as defined in the Thrift IDL.
    int
    Get the integer value of this enum value, as defined in the Thrift IDL.
    Returns the enum constant of this type with the specified name.
    static ConvertedType[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

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

    • UTF8

      public static final ConvertedType UTF8
      a BYTE_ARRAY actually contains UTF8 encoded chars
    • MAP

      public static final ConvertedType MAP
      a map is converted as an optional field containing a repeated key/value pair
    • MAP_KEY_VALUE

      public static final ConvertedType MAP_KEY_VALUE
      a key/value pair is converted into a group of two fields
    • LIST

      public static final ConvertedType LIST
      a list is converted into an optional field containing a repeated field for its values
    • ENUM

      public static final ConvertedType ENUM
      an enum is converted into a BYTE_ARRAY field
    • DECIMAL

      public static final ConvertedType DECIMAL
      A decimal value. This may be used to annotate BYTE_ARRAY or FIXED_LEN_BYTE_ARRAY primitive types. The underlying byte array stores the unscaled value encoded as two's complement using big-endian byte order (the most significant byte is the zeroth element). The value of the decimal is the value * 10^{-scale}. This must be accompanied by a (maximum) precision and a scale in the SchemaElement. The precision specifies the number of digits in the decimal and the scale stores the location of the decimal point. For example 1.23 would have precision 3 (3 total digits) and scale 2 (the decimal point is 2 digits over).
    • DATE

      public static final ConvertedType DATE
      A Date Stored as days since Unix epoch, encoded as the INT32 physical type.
    • TIME_MILLIS

      public static final ConvertedType TIME_MILLIS
      A time The total number of milliseconds since midnight. The value is stored as an INT32 physical type.
    • TIME_MICROS

      public static final ConvertedType TIME_MICROS
      A time. The total number of microseconds since midnight. The value is stored as an INT64 physical type.
    • TIMESTAMP_MILLIS

      public static final ConvertedType TIMESTAMP_MILLIS
      A date/time combination Date and time recorded as milliseconds since the Unix epoch. Recorded as a physical type of INT64.
    • TIMESTAMP_MICROS

      public static final ConvertedType TIMESTAMP_MICROS
      A date/time combination Date and time recorded as microseconds since the Unix epoch. The value is stored as an INT64 physical type.
    • UINT_8

      public static final ConvertedType UINT_8
      An unsigned integer value. The number describes the maximum number of meaningful data bits in the stored value. 8, 16 and 32 bit values are stored using the INT32 physical type. 64 bit values are stored using the INT64 physical type.
    • UINT_16

      public static final ConvertedType UINT_16
    • UINT_32

      public static final ConvertedType UINT_32
    • UINT_64

      public static final ConvertedType UINT_64
    • INT_8

      public static final ConvertedType INT_8
      A signed integer value. The number describes the maximum number of meaningful data bits in the stored value. 8, 16 and 32 bit values are stored using the INT32 physical type. 64 bit values are stored using the INT64 physical type.
    • INT_16

      public static final ConvertedType INT_16
    • INT_32

      public static final ConvertedType INT_32
    • INT_64

      public static final ConvertedType INT_64
    • JSON

      public static final ConvertedType JSON
      An embedded JSON document A JSON document embedded within a single UTF8 column.
    • BSON

      public static final ConvertedType BSON
      An embedded BSON document A BSON document embedded within a single BYTE_ARRAY column.
    • INTERVAL

      public static final ConvertedType INTERVAL
      An interval of time This type annotates data stored as a FIXED_LEN_BYTE_ARRAY of length 12 This data is composed of three separate little endian unsigned integers. Each stores a component of a duration of time. The first integer identifies the number of months associated with the duration, the second identifies the number of days associated with the duration and the third identifies the number of milliseconds associated with the provided duration. This duration of time is independent of any particular timezone or date.
  • Method Details

    • values

      public static ConvertedType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ConvertedType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Get the integer value of this enum value, as defined in the Thrift IDL.
      Specified by:
      getValue in interface org.apache.thrift.TEnum
    • findByValue

      public static ConvertedType findByValue(int value)
      Find a the enum type by its integer value, as defined in the Thrift IDL.
      Returns:
      null if the value is not found.