public class Item extends Object implements org.apache.thrift7.TBase<Item,Item._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
Item._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<Item._Fields,org.apache.thrift7.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
Item() |
Item(ByteBuffer data,
long id) |
Item(Item other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
buffer_for_data() |
void |
clear() |
int |
compareTo(Item other) |
Item |
deepCopy() |
boolean |
equals(Item that) |
boolean |
equals(Object that) |
Item._Fields |
fieldForId(int fieldId) |
byte[] |
get_data() |
long |
get_id() |
Object |
getFieldValue(Item._Fields field) |
int |
hashCode() |
boolean |
is_set_data()
Returns true if field data is set (has been assigned a value) and false
otherwise
|
boolean |
is_set_id()
Returns true if field id is set (has been assigned a value) and false
otherwise
|
boolean |
isSet(Item._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned
a value) and false otherwise
|
void |
read(org.apache.thrift7.protocol.TProtocol iprot) |
void |
set_data_isSet(boolean value) |
void |
set_data(byte[] data) |
void |
set_data(ByteBuffer data) |
void |
set_id_isSet(boolean value) |
void |
set_id(long id) |
void |
setFieldValue(Item._Fields field,
Object value) |
String |
toString() |
void |
unset_data() |
void |
unset_id() |
void |
validate() |
void |
write(org.apache.thrift7.protocol.TProtocol oprot) |
public static final Map<Item._Fields,org.apache.thrift7.meta_data.FieldMetaData> metaDataMap
public Item()
public Item(ByteBuffer data, long id)
public Item deepCopy()
deepCopy
in interface org.apache.thrift7.TBase<Item,Item._Fields>
public void clear()
clear
in interface org.apache.thrift7.TBase<Item,Item._Fields>
public byte[] get_data()
public ByteBuffer buffer_for_data()
public void set_data(byte[] data)
public void set_data(ByteBuffer data)
public void unset_data()
public boolean is_set_data()
public void set_data_isSet(boolean value)
public long get_id()
public void set_id(long id)
public void unset_id()
public boolean is_set_id()
public void set_id_isSet(boolean value)
public void setFieldValue(Item._Fields field, Object value)
setFieldValue
in interface org.apache.thrift7.TBase<Item,Item._Fields>
public Object getFieldValue(Item._Fields field)
getFieldValue
in interface org.apache.thrift7.TBase<Item,Item._Fields>
public boolean isSet(Item._Fields field)
isSet
in interface org.apache.thrift7.TBase<Item,Item._Fields>
public int compareTo(Item other)
compareTo
in interface Comparable<Item>
public Item._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift7.TBase<Item,Item._Fields>
public void read(org.apache.thrift7.protocol.TProtocol iprot) throws org.apache.thrift7.TException
read
in interface org.apache.thrift7.TBase<Item,Item._Fields>
org.apache.thrift7.TException
public void write(org.apache.thrift7.protocol.TProtocol oprot) throws org.apache.thrift7.TException
write
in interface org.apache.thrift7.TBase<Item,Item._Fields>
org.apache.thrift7.TException
public void validate() throws org.apache.thrift7.TException
org.apache.thrift7.TException