@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") public class Schema extends java.lang.Object implements org.apache.thrift.TBase<Schema,Schema._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Schema>
| 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 java.util.Map<Schema._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
Schema() |
Schema(java.util.List<FieldSchema> fieldSchemas,
java.util.Map<java.lang.String,java.lang.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(java.lang.Object that) |
boolean |
equals(Schema that) |
Schema._Fields |
fieldForId(int fieldId) |
java.util.List<FieldSchema> |
getFieldSchemas() |
java.util.Iterator<FieldSchema> |
getFieldSchemasIterator() |
int |
getFieldSchemasSize() |
java.lang.Object |
getFieldValue(Schema._Fields field) |
java.util.Map<java.lang.String,java.lang.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(java.lang.String key,
java.lang.String val) |
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldSchemas(java.util.List<FieldSchema> fieldSchemas) |
void |
setFieldSchemasIsSet(boolean value) |
void |
setFieldValue(Schema._Fields field,
java.lang.Object value) |
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> properties) |
void |
setPropertiesIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetFieldSchemas() |
void |
unsetProperties() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final java.util.Map<Schema._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public Schema()
public Schema(java.util.List<FieldSchema> fieldSchemas, java.util.Map<java.lang.String,java.lang.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 java.util.Iterator<FieldSchema> getFieldSchemasIterator()
public void addToFieldSchemas(FieldSchema elem)
public java.util.List<FieldSchema> getFieldSchemas()
public void setFieldSchemas(java.util.List<FieldSchema> fieldSchemas)
public void unsetFieldSchemas()
public boolean isSetFieldSchemas()
public void setFieldSchemasIsSet(boolean value)
public int getPropertiesSize()
public void putToProperties(java.lang.String key,
java.lang.String val)
public java.util.Map<java.lang.String,java.lang.String> getProperties()
public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
public void unsetProperties()
public boolean isSetProperties()
public void setPropertiesIsSet(boolean value)
public void setFieldValue(Schema._Fields field, java.lang.Object value)
setFieldValue in interface org.apache.thrift.TBase<Schema,Schema._Fields>public java.lang.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(java.lang.Object that)
equals in class java.lang.Objectpublic boolean equals(Schema that)
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(Schema other)
compareTo in interface java.lang.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 java.lang.String toString()
toString in class java.lang.Objectpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2013-2021. All Rights Reserved.