public class MiniStruct extends Object implements org.apache.thrift.TBase<MiniStruct,MiniStruct._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
MiniStruct._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<MiniStruct._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
MiniStruct() |
MiniStruct(MiniStruct other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(MiniStruct other) |
MiniStruct |
deepCopy() |
boolean |
equals(MiniStruct that) |
boolean |
equals(Object that) |
MiniStruct._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(MiniStruct._Fields field) |
MyEnum |
getMy_enum() |
String |
getMy_string() |
int |
hashCode() |
boolean |
isSet(MiniStruct._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetMy_enum()
Returns true if field my_enum is set (has been assigned a value) and false otherwise
|
boolean |
isSetMy_string()
Returns true if field my_string is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(MiniStruct._Fields field,
Object value) |
void |
setMy_enum(MyEnum my_enum) |
void |
setMy_enumIsSet(boolean value) |
void |
setMy_string(String my_string) |
void |
setMy_stringIsSet(boolean value) |
String |
toString() |
void |
unsetMy_enum() |
void |
unsetMy_string() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<MiniStruct._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public MiniStruct()
public MiniStruct(MiniStruct other)
public MiniStruct deepCopy()
deepCopy
in interface org.apache.thrift.TBase<MiniStruct,MiniStruct._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<MiniStruct,MiniStruct._Fields>
public String getMy_string()
public void setMy_string(String my_string)
public void unsetMy_string()
public boolean isSetMy_string()
public void setMy_stringIsSet(boolean value)
public void unsetMy_enum()
public boolean isSetMy_enum()
public void setMy_enumIsSet(boolean value)
public void setFieldValue(MiniStruct._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<MiniStruct,MiniStruct._Fields>
public Object getFieldValue(MiniStruct._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<MiniStruct,MiniStruct._Fields>
public boolean isSet(MiniStruct._Fields field)
isSet
in interface org.apache.thrift.TBase<MiniStruct,MiniStruct._Fields>
public boolean equals(MiniStruct that)
public int compareTo(MiniStruct other)
compareTo
in interface Comparable<MiniStruct>
public MiniStruct._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<MiniStruct,MiniStruct._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<MiniStruct,MiniStruct._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<MiniStruct,MiniStruct._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2017 The Apache Software Foundation. All rights reserved.