Package org.apache.parquet.format
Enum 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 ConstantsEnum ConstantDescriptionAn 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 fieldA 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 valuesa map is converted as an optional field containing a repeated key/value paira key/value pair is converted into a group of two fieldsA 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 TypeMethodDescriptionstatic ConvertedTypefindByValue(int value) Find a the enum type by its integer value, as defined in the Thrift IDL.intgetValue()Get the integer value of this enum value, as defined in the Thrift IDL.static ConvertedTypeReturns the enum constant of this type with the specified name.static ConvertedType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UTF8
a BYTE_ARRAY actually contains UTF8 encoded chars -
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 -
LIST
a list is converted into an optional field containing a repeated field for its values -
ENUM
an enum is converted into a BYTE_ARRAY field -
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
A Date Stored as days since Unix epoch, encoded as the INT32 physical type. -
TIME_MILLIS
A time The total number of milliseconds since midnight. The value is stored as an INT32 physical type. -
TIME_MICROS
A time. The total number of microseconds since midnight. The value is stored as an INT64 physical type. -
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
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
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
-
UINT_32
-
UINT_64
-
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
-
INT_32
-
INT_64
-
JSON
An embedded JSON document A JSON document embedded within a single UTF8 column. -
BSON
An embedded BSON document A BSON document embedded within a single BYTE_ARRAY column. -
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
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
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 nameNullPointerException- 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:
getValuein interfaceorg.apache.thrift.TEnum
-
findByValue
Find a the enum type by its integer value, as defined in the Thrift IDL.- Returns:
- null if the value is not found.
-