Package org.apache.parquet.format
Enum SchemaElement._Fields
- All Implemented Interfaces:
Serializable,Comparable<SchemaElement._Fields>,org.apache.thrift.TFieldIdEnum
- Enclosing class:
- SchemaElement
public static enum SchemaElement._Fields
extends Enum<SchemaElement._Fields>
implements org.apache.thrift.TFieldIdEnum
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDEPRECATED: When the schema is the result of a conversion from another model.When the original schema supports field ids, this will save the original field id in the parquet schemaThe logical type of this SchemaElement LogicalType replaces ConvertedType, but ConvertedType is still required for some logical types to ensure forward-compatibility in format v1.Name of the field in the schemaNested fields.repetition of the field.DEPRECATED: Used when this column contains decimal data.Data type for this field.If type is FIXED_LEN_BYTE_ARRAY, this is the byte length of the values. -
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaElement._FieldsfindByName(String name) Find the _Fields constant that matches name, or null if its not found.static SchemaElement._FieldsfindByThriftId(int fieldId) Find the _Fields constant that matches fieldId, or null if its not found.static SchemaElement._FieldsfindByThriftIdOrThrow(int fieldId) Find the _Fields constant that matches fieldId, throwing an exception if it is not found.shortstatic SchemaElement._FieldsReturns the enum constant of this type with the specified name.static SchemaElement._Fields[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TYPE
Data type for this field. Not set if the current element is a non-leaf node- See Also:
-
TYPE_LENGTH
If type is FIXED_LEN_BYTE_ARRAY, this is the byte length of the values. Otherwise, if specified, this is the maximum bit length to store any of the values. (e.g. a low cardinality INT col could have this set to 3). Note that this is in the schema, and therefore fixed for the entire file. -
REPETITION_TYPE
repetition of the field. The root of the schema does not have a repetition_type. All other nodes must have one- See Also:
-
NAME
Name of the field in the schema -
NUM_CHILDREN
Nested fields. Since thrift does not support nested fields, the nesting is flattened to a single list by a depth-first traversal. The children count is used to construct the nested relationship. This field is not set when the element is a primitive type -
CONVERTED_TYPE
DEPRECATED: When the schema is the result of a conversion from another model. Used to record the original type to help with cross conversion. This is superseded by logicalType.- See Also:
-
SCALE
DEPRECATED: Used when this column contains decimal data. See the DECIMAL converted type for more details. This is superseded by using the DecimalType annotation in logicalType. -
PRECISION
-
FIELD_ID
When the original schema supports field ids, this will save the original field id in the parquet schema -
LOGICAL_TYPE
The logical type of this SchemaElement LogicalType replaces ConvertedType, but ConvertedType is still required for some logical types to ensure forward-compatibility in format v1.
-
-
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
-
findByThriftId
Find the _Fields constant that matches fieldId, or null if its not found. -
findByThriftIdOrThrow
Find the _Fields constant that matches fieldId, throwing an exception if it is not found. -
findByName
Find the _Fields constant that matches name, or null if its not found. -
getThriftFieldId
public short getThriftFieldId()- Specified by:
getThriftFieldIdin interfaceorg.apache.thrift.TFieldIdEnum
-
getFieldName
- Specified by:
getFieldNamein interfaceorg.apache.thrift.TFieldIdEnum
-