@Generated(value="Autogenerated by Thrift Compiler (0.14.0)", date="2023-06-29") public class SchemaElement extends Object implements org.apache.thrift.TBase<SchemaElement,SchemaElement._Fields>, Serializable, Cloneable, Comparable<SchemaElement>
Modifier and Type | Class and Description |
---|---|
static class |
SchemaElement._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
ConvertedType |
converted_type
DEPRECATED: When the schema is the result of a conversion from another model.
|
int |
field_id
When the original schema supports field ids, this will save the
original field id in the parquet schema
|
LogicalType |
logicalType
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.
|
static Map<SchemaElement._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
String |
name
Name of the field in the schema
|
int |
num_children
Nested fields.
|
int |
precision |
FieldRepetitionType |
repetition_type
repetition of the field.
|
int |
scale
DEPRECATED: Used when this column contains decimal data.
|
Type |
type
Data type for this field.
|
int |
type_length
If type is FIXED_LEN_BYTE_ARRAY, this is the byte length of the vales.
|
Constructor and Description |
---|
SchemaElement() |
SchemaElement(SchemaElement other)
Performs a deep copy on other.
|
SchemaElement(String name) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(SchemaElement other) |
SchemaElement |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(SchemaElement that) |
SchemaElement._Fields |
fieldForId(int fieldId) |
ConvertedType |
getConverted_type()
DEPRECATED: When the schema is the result of a conversion from another model.
|
int |
getField_id()
When the original schema supports field ids, this will save the
original field id in the parquet schema
|
Object |
getFieldValue(SchemaElement._Fields field) |
LogicalType |
getLogicalType()
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.
|
String |
getName()
Name of the field in the schema
|
int |
getNum_children()
Nested fields.
|
int |
getPrecision() |
FieldRepetitionType |
getRepetition_type()
repetition of the field.
|
int |
getScale()
DEPRECATED: Used when this column contains decimal data.
|
int |
getType_length()
If type is FIXED_LEN_BYTE_ARRAY, this is the byte length of the vales.
|
Type |
getType()
Data type for this field.
|
int |
hashCode() |
boolean |
isSet(SchemaElement._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetConverted_type()
Returns true if field converted_type is set (has been assigned a value) and false otherwise
|
boolean |
isSetField_id()
Returns true if field field_id is set (has been assigned a value) and false otherwise
|
boolean |
isSetLogicalType()
Returns true if field logicalType is set (has been assigned a value) and false otherwise
|
boolean |
isSetName()
Returns true if field name is set (has been assigned a value) and false otherwise
|
boolean |
isSetNum_children()
Returns true if field num_children is set (has been assigned a value) and false otherwise
|
boolean |
isSetPrecision()
Returns true if field precision is set (has been assigned a value) and false otherwise
|
boolean |
isSetRepetition_type()
Returns true if field repetition_type is set (has been assigned a value) and false otherwise
|
boolean |
isSetScale()
Returns true if field scale is set (has been assigned a value) and false otherwise
|
boolean |
isSetType_length()
Returns true if field type_length is set (has been assigned a value) and false otherwise
|
boolean |
isSetType()
Returns true if field type is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
SchemaElement |
setConverted_type(ConvertedType converted_type)
DEPRECATED: When the schema is the result of a conversion from another model.
|
void |
setConverted_typeIsSet(boolean value) |
SchemaElement |
setField_id(int field_id)
When the original schema supports field ids, this will save the
original field id in the parquet schema
|
void |
setField_idIsSet(boolean value) |
void |
setFieldValue(SchemaElement._Fields field,
Object value) |
SchemaElement |
setLogicalType(LogicalType logicalType)
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.
|
void |
setLogicalTypeIsSet(boolean value) |
SchemaElement |
setName(String name)
Name of the field in the schema
|
void |
setNameIsSet(boolean value) |
SchemaElement |
setNum_children(int num_children)
Nested fields.
|
void |
setNum_childrenIsSet(boolean value) |
SchemaElement |
setPrecision(int precision) |
void |
setPrecisionIsSet(boolean value) |
SchemaElement |
setRepetition_type(FieldRepetitionType repetition_type)
repetition of the field.
|
void |
setRepetition_typeIsSet(boolean value) |
SchemaElement |
setScale(int scale)
DEPRECATED: Used when this column contains decimal data.
|
void |
setScaleIsSet(boolean value) |
SchemaElement |
setType_length(int type_length)
If type is FIXED_LEN_BYTE_ARRAY, this is the byte length of the vales.
|
void |
setType_lengthIsSet(boolean value) |
SchemaElement |
setType(Type type)
Data type for this field.
|
void |
setTypeIsSet(boolean value) |
String |
toString() |
void |
unsetConverted_type() |
void |
unsetField_id() |
void |
unsetLogicalType() |
void |
unsetName() |
void |
unsetNum_children() |
void |
unsetPrecision() |
void |
unsetRepetition_type() |
void |
unsetScale() |
void |
unsetType_length() |
void |
unsetType() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public Type type
Type
public int type_length
public FieldRepetitionType repetition_type
FieldRepetitionType
public String name
public int num_children
public ConvertedType converted_type
ConvertedType
public int scale
public int precision
public int field_id
public LogicalType logicalType
public static final Map<SchemaElement._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public SchemaElement()
public SchemaElement(String name)
public SchemaElement(SchemaElement other)
public SchemaElement deepCopy()
deepCopy
in interface org.apache.thrift.TBase<SchemaElement,SchemaElement._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<SchemaElement,SchemaElement._Fields>
public Type getType()
Type
public SchemaElement setType(Type type)
Type
public void unsetType()
public boolean isSetType()
public void setTypeIsSet(boolean value)
public int getType_length()
public SchemaElement setType_length(int type_length)
public void unsetType_length()
public boolean isSetType_length()
public void setType_lengthIsSet(boolean value)
public FieldRepetitionType getRepetition_type()
FieldRepetitionType
public SchemaElement setRepetition_type(FieldRepetitionType repetition_type)
FieldRepetitionType
public void unsetRepetition_type()
public boolean isSetRepetition_type()
public void setRepetition_typeIsSet(boolean value)
public String getName()
public SchemaElement setName(String name)
public void unsetName()
public boolean isSetName()
public void setNameIsSet(boolean value)
public int getNum_children()
public SchemaElement setNum_children(int num_children)
public void unsetNum_children()
public boolean isSetNum_children()
public void setNum_childrenIsSet(boolean value)
public ConvertedType getConverted_type()
ConvertedType
public SchemaElement setConverted_type(ConvertedType converted_type)
ConvertedType
public void unsetConverted_type()
public boolean isSetConverted_type()
public void setConverted_typeIsSet(boolean value)
public int getScale()
public SchemaElement setScale(int scale)
public void unsetScale()
public boolean isSetScale()
public void setScaleIsSet(boolean value)
public int getPrecision()
public SchemaElement setPrecision(int precision)
public void unsetPrecision()
public boolean isSetPrecision()
public void setPrecisionIsSet(boolean value)
public int getField_id()
public SchemaElement setField_id(int field_id)
public void unsetField_id()
public boolean isSetField_id()
public void setField_idIsSet(boolean value)
public LogicalType getLogicalType()
public SchemaElement setLogicalType(LogicalType logicalType)
public void unsetLogicalType()
public boolean isSetLogicalType()
public void setLogicalTypeIsSet(boolean value)
public void setFieldValue(SchemaElement._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<SchemaElement,SchemaElement._Fields>
public Object getFieldValue(SchemaElement._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<SchemaElement,SchemaElement._Fields>
public boolean isSet(SchemaElement._Fields field)
isSet
in interface org.apache.thrift.TBase<SchemaElement,SchemaElement._Fields>
public boolean equals(SchemaElement that)
public int compareTo(SchemaElement other)
compareTo
in interface Comparable<SchemaElement>
public SchemaElement._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<SchemaElement,SchemaElement._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TSerializable
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TSerializable
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2023 The Apache Software Foundation. All rights reserved.