public class Schema extends Object implements org.apache.thrift.TBase<Schema,Schema._Fields>, Serializable, Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
Schema._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
static Map<Schema._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
Schema() |
Schema(List<FieldSchema> fieldSchemas,
Map<String,String> properties) |
Schema(Schema other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToFieldSchemas(FieldSchema elem) |
void |
clear() |
int |
compareTo(Schema other) |
Schema |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(Schema that) |
Schema._Fields |
fieldForId(int fieldId) |
List<FieldSchema> |
getFieldSchemas() |
Iterator<FieldSchema> |
getFieldSchemasIterator() |
int |
getFieldSchemasSize() |
Object |
getFieldValue(Schema._Fields field) |
Map<String,String> |
getProperties() |
int |
getPropertiesSize() |
int |
hashCode() |
boolean |
isSet(Schema._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetFieldSchemas()
Returns true if field fieldSchemas is set (has been assigned a value) and false otherwise
|
boolean |
isSetProperties()
Returns true if field properties is set (has been assigned a value) and false otherwise
|
void |
putToProperties(String key,
String val) |
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldSchemas(List<FieldSchema> fieldSchemas) |
void |
setFieldSchemasIsSet(boolean value) |
void |
setFieldValue(Schema._Fields field,
Object value) |
void |
setProperties(Map<String,String> properties) |
void |
setPropertiesIsSet(boolean value) |
String |
toString() |
void |
unsetFieldSchemas() |
void |
unsetProperties() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<Schema._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public Schema()
public Schema(List<FieldSchema> fieldSchemas, Map<String,String> properties)
public Schema(Schema other)
public Schema deepCopy()
deepCopy in interface org.apache.thrift.TBase<Schema,Schema._Fields>public void clear()
clear in interface org.apache.thrift.TBase<Schema,Schema._Fields>public int getFieldSchemasSize()
public Iterator<FieldSchema> getFieldSchemasIterator()
public void addToFieldSchemas(FieldSchema elem)
public List<FieldSchema> getFieldSchemas()
public void setFieldSchemas(List<FieldSchema> fieldSchemas)
public void unsetFieldSchemas()
public boolean isSetFieldSchemas()
public void setFieldSchemasIsSet(boolean value)
public int getPropertiesSize()
public void unsetProperties()
public boolean isSetProperties()
public void setPropertiesIsSet(boolean value)
public void setFieldValue(Schema._Fields field, Object value)
setFieldValue in interface org.apache.thrift.TBase<Schema,Schema._Fields>public Object getFieldValue(Schema._Fields field)
getFieldValue in interface org.apache.thrift.TBase<Schema,Schema._Fields>public boolean isSet(Schema._Fields field)
isSet in interface org.apache.thrift.TBase<Schema,Schema._Fields>public boolean equals(Schema that)
public int compareTo(Schema other)
compareTo in interface Comparable<Schema>public Schema._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<Schema,Schema._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TBase<Schema,Schema._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<Schema,Schema._Fields>org.apache.thrift.TExceptionpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.