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.
|
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.
|
FieldRepetitionType |
repetition_type
repetition of the field.
|
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.
|
Object |
getFieldValue(SchemaElement._Fields field) |
String |
getName()
Name of the field in the schema
|
int |
getNum_children()
Nested fields.
|
FieldRepetitionType |
getRepetition_type()
repetition of the field.
|
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 asigned a value) and false otherwise
|
boolean |
isSetConverted_type()
Returns true if field converted_type is set (has been asigned a value) and false otherwise
|
boolean |
isSetName()
Returns true if field name is set (has been asigned a value) and false otherwise
|
boolean |
isSetNum_children()
Returns true if field num_children is set (has been asigned a value) and false otherwise
|
boolean |
isSetRepetition_type()
Returns true if field repetition_type is set (has been asigned a value) and false otherwise
|
boolean |
isSetType_length()
Returns true if field type_length is set (has been asigned a value) and false otherwise
|
boolean |
isSetType()
Returns true if field type is set (has been asigned 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) |
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 |
setRepetition_type(FieldRepetitionType repetition_type)
repetition of the field.
|
void |
setRepetition_typeIsSet(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 |
unsetName() |
void |
unsetNum_children() |
void |
unsetRepetition_type() |
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 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 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 © 2013. All Rights Reserved.