public class Command extends Object implements org.apache.thrift.TBase<Command,Command._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
Command._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
CommandType |
mCommandType |
List<Long> |
mData |
static Map<Command._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
Command() |
Command(Command other)
Performs a deep copy on other.
|
Command(CommandType mCommandType,
List<Long> mData) |
Modifier and Type | Method and Description |
---|---|
void |
addToMData(long elem) |
void |
clear() |
int |
compareTo(Command other) |
Command |
deepCopy() |
boolean |
equals(Command that) |
boolean |
equals(Object that) |
Command._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(Command._Fields field) |
CommandType |
getMCommandType() |
List<Long> |
getMData() |
Iterator<Long> |
getMDataIterator() |
int |
getMDataSize() |
int |
hashCode() |
boolean |
isSet(Command._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetMCommandType()
Returns true if field mCommandType is set (has been assigned a value) and false otherwise
|
boolean |
isSetMData()
Returns true if field mData is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(Command._Fields field,
Object value) |
Command |
setMCommandType(CommandType mCommandType) |
void |
setMCommandTypeIsSet(boolean value) |
Command |
setMData(List<Long> mData) |
void |
setMDataIsSet(boolean value) |
String |
toString() |
void |
unsetMCommandType() |
void |
unsetMData() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public CommandType mCommandType
CommandType
public static final Map<Command._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public Command()
public Command(CommandType mCommandType, List<Long> mData)
public Command(Command other)
public Command deepCopy()
deepCopy
in interface org.apache.thrift.TBase<Command,Command._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<Command,Command._Fields>
public CommandType getMCommandType()
CommandType
public Command setMCommandType(CommandType mCommandType)
CommandType
public void unsetMCommandType()
public boolean isSetMCommandType()
public void setMCommandTypeIsSet(boolean value)
public int getMDataSize()
public void addToMData(long elem)
public void unsetMData()
public boolean isSetMData()
public void setMDataIsSet(boolean value)
public void setFieldValue(Command._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<Command,Command._Fields>
public Object getFieldValue(Command._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<Command,Command._Fields>
public boolean isSet(Command._Fields field)
isSet
in interface org.apache.thrift.TBase<Command,Command._Fields>
public boolean equals(Command that)
public int compareTo(Command other)
compareTo
in interface Comparable<Command>
public Command._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<Command,Command._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<Command,Command._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<Command,Command._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2014. All rights reserved.