Enum ConvertedType

  • All Implemented Interfaces:
    Serializable, Comparable<ConvertedType>, org.apache.thrift.TEnum

    @Generated(value="Autogenerated by Thrift Compiler (0.13.0)",
               date="2021-04-07")
    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
      BSON
      An embedded BSON document A BSON document embedded within a single BINARY column.
      DATE
      A Date Stored as days since Unix epoch, encoded as the INT32 physical type.
      DECIMAL
      A decimal value.
      ENUM
      an enum is converted into a binary field
      INT_16  
      INT_32  
      INT_64  
      INT_8
      A signed integer value.
      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.
      JSON
      An embedded JSON document A JSON document embedded within a single UTF8 column.
      LIST
      a list is converted into an optional field containing a repeated field for its values
      MAP
      a map is converted as an optional field containing a repeated key/value pair
      MAP_KEY_VALUE
      a key/value pair is converted into a group of two fields
      TIME_MICROS
      A time.
      TIME_MILLIS
      A time The total number of milliseconds since midnight.
      TIMESTAMP_MICROS
      A date/time combination Date and time recorded as microseconds since the Unix epoch.
      TIMESTAMP_MILLIS
      A date/time combination Date and time recorded as milliseconds since the Unix epoch.
      UINT_16  
      UINT_32  
      UINT_64  
      UINT_8
      An unsigned integer value.
      UTF8
      a BYTE_ARRAY actually contains UTF8 encoded chars
    • Enum Constant Detail

      • 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 binary field
      • DECIMAL

        public static final ConvertedType DECIMAL
        A decimal value. This may be used to annotate binary or fixed 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.
      • 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.
      • 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 BINARY 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 Detail

      • values

        public static ConvertedType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ConvertedType c : ConvertedType.values())
            System.out.println(c);
        
        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.