public class SchemaElement extends Object implements org.apache.thrift.TBase<SchemaElement,SchemaElement._Fields>, Serializable, Cloneable
| 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
When the schema is the result of a conversion from another model
Used to record the original type to help with cross conversion.
|
int |
field_id
When the original schema supports field ids, this will save the
original field id in the parquet schema
|
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
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()
When the schema is the result of a conversion from another model
Used to record the original type to help with cross conversion.
|
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) |
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()
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 |
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)
When the schema is the result of a conversion from another model
Used to record the original type to help with cross conversion.
|
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 |
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)
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 |
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
Typepublic int type_length
public FieldRepetitionType repetition_type
FieldRepetitionTypepublic String name
public int num_children
public ConvertedType converted_type
ConvertedTypepublic int scale
public int precision
public int field_id
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()
Typepublic SchemaElement setType(Type type)
Typepublic 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()
FieldRepetitionTypepublic SchemaElement setRepetition_type(FieldRepetitionType repetition_type)
FieldRepetitionTypepublic 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()
ConvertedTypepublic SchemaElement setConverted_type(ConvertedType converted_type)
ConvertedTypepublic 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 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.TBase<SchemaElement,SchemaElement._Fields>org.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
write in interface org.apache.thrift.TBase<SchemaElement,SchemaElement._Fields>org.apache.thrift.TExceptionpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.