public class ThriftTestObj extends Object implements org.apache.thrift.TBase<ThriftTestObj,ThriftTestObj._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
ThriftTestObj._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<ThriftTestObj._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
ThriftTestObj() |
ThriftTestObj(int field1,
String field2,
List<InnerStruct> field3) |
ThriftTestObj(ThriftTestObj other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
addToField3(InnerStruct elem) |
void |
clear() |
int |
compareTo(ThriftTestObj other) |
ThriftTestObj |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(ThriftTestObj that) |
ThriftTestObj._Fields |
fieldForId(int fieldId) |
int |
getField1() |
String |
getField2() |
List<InnerStruct> |
getField3() |
Iterator<InnerStruct> |
getField3Iterator() |
int |
getField3Size() |
Object |
getFieldValue(ThriftTestObj._Fields field) |
int |
hashCode() |
boolean |
isSet(ThriftTestObj._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetField1()
Returns true if field field1 is set (has been assigned a value) and false otherwise
|
boolean |
isSetField2()
Returns true if field field2 is set (has been assigned a value) and false otherwise
|
boolean |
isSetField3()
Returns true if field field3 is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setField1(int field1) |
void |
setField1IsSet(boolean value) |
void |
setField2(String field2) |
void |
setField2IsSet(boolean value) |
void |
setField3(List<InnerStruct> field3) |
void |
setField3IsSet(boolean value) |
void |
setFieldValue(ThriftTestObj._Fields field,
Object value) |
String |
toString() |
void |
unsetField1() |
void |
unsetField2() |
void |
unsetField3() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<ThriftTestObj._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public ThriftTestObj()
public ThriftTestObj(int field1, String field2, List<InnerStruct> field3)
public ThriftTestObj(ThriftTestObj other)
public ThriftTestObj deepCopy()
deepCopy
in interface org.apache.thrift.TBase<ThriftTestObj,ThriftTestObj._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<ThriftTestObj,ThriftTestObj._Fields>
public int getField1()
public void setField1(int field1)
public void unsetField1()
public boolean isSetField1()
public void setField1IsSet(boolean value)
public String getField2()
public void setField2(String field2)
public void unsetField2()
public boolean isSetField2()
public void setField2IsSet(boolean value)
public int getField3Size()
public Iterator<InnerStruct> getField3Iterator()
public void addToField3(InnerStruct elem)
public List<InnerStruct> getField3()
public void setField3(List<InnerStruct> field3)
public void unsetField3()
public boolean isSetField3()
public void setField3IsSet(boolean value)
public void setFieldValue(ThriftTestObj._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<ThriftTestObj,ThriftTestObj._Fields>
public Object getFieldValue(ThriftTestObj._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<ThriftTestObj,ThriftTestObj._Fields>
public boolean isSet(ThriftTestObj._Fields field)
isSet
in interface org.apache.thrift.TBase<ThriftTestObj,ThriftTestObj._Fields>
public boolean equals(ThriftTestObj that)
public int compareTo(ThriftTestObj other)
compareTo
in interface Comparable<ThriftTestObj>
public ThriftTestObj._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<ThriftTestObj,ThriftTestObj._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<ThriftTestObj,ThriftTestObj._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<ThriftTestObj,ThriftTestObj._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.