@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") public class Command extends Object implements org.apache.thrift.TBase<Command,Command._Fields>, Serializable, Cloneable, Comparable<Command>
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 |
---|---|
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 commandType,
List<Long> data) |
Modifier and Type | Method and Description |
---|---|
void |
addToData(long elem) |
void |
clear() |
int |
compareTo(Command other) |
Command |
deepCopy() |
boolean |
equals(Command that) |
boolean |
equals(Object that) |
Command._Fields |
fieldForId(int fieldId) |
CommandType |
getCommandType() |
List<Long> |
getData() |
Iterator<Long> |
getDataIterator() |
int |
getDataSize() |
Object |
getFieldValue(Command._Fields field) |
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 |
isSetCommandType()
Returns true if field commandType is set (has been assigned a value) and false otherwise
|
boolean |
isSetData()
Returns true if field data is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
Command |
setCommandType(CommandType commandType) |
void |
setCommandTypeIsSet(boolean value) |
Command |
setData(List<Long> data) |
void |
setDataIsSet(boolean value) |
void |
setFieldValue(Command._Fields field,
Object value) |
String |
toString() |
void |
unsetCommandType() |
void |
unsetData() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<Command._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public Command()
public Command(CommandType commandType, List<Long> data)
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 getCommandType()
CommandType
public Command setCommandType(CommandType commandType)
CommandType
public void unsetCommandType()
public boolean isSetCommandType()
public void setCommandTypeIsSet(boolean value)
public int getDataSize()
public void addToData(long elem)
public void unsetData()
public boolean isSetData()
public void setDataIsSet(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 © 2023. All Rights Reserved.