tachyon.thrift
Class Command

java.lang.Object
  extended by tachyon.thrift.Command
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Command>, org.apache.thrift.TBase<Command,Command._Fields>

public class Command
extends Object
implements org.apache.thrift.TBase<Command,Command._Fields>, Serializable, Cloneable

See Also:
Serialized Form

Nested Class Summary
static class Command._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 CommandType mCommandType
           
 ByteBuffer mData
           
static Map<Command._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
Command()
           
Command(Command other)
          Performs a deep copy on other.
Command(CommandType mCommandType, ByteBuffer mData)
           
 
Method Summary
 ByteBuffer bufferForMData()
           
 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()
           
 byte[] getMData()
           
 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(byte[] mData)
           
 Command setMData(ByteBuffer mData)
           
 void setMDataIsSet(boolean value)
           
 String toString()
           
 void unsetMCommandType()
           
 void unsetMData()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

mCommandType

public CommandType mCommandType
See Also:
CommandType

mData

public ByteBuffer mData

metaDataMap

public static final Map<Command._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

Command

public Command()

Command

public Command(CommandType mCommandType,
               ByteBuffer mData)

Command

public Command(Command other)
Performs a deep copy on other.

Method Detail

deepCopy

public Command deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<Command,Command._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<Command,Command._Fields>

getMCommandType

public CommandType getMCommandType()
See Also:
CommandType

setMCommandType

public Command setMCommandType(CommandType mCommandType)
See Also:
CommandType

unsetMCommandType

public void unsetMCommandType()

isSetMCommandType

public boolean isSetMCommandType()
Returns true if field mCommandType is set (has been assigned a value) and false otherwise


setMCommandTypeIsSet

public void setMCommandTypeIsSet(boolean value)

getMData

public byte[] getMData()

bufferForMData

public ByteBuffer bufferForMData()

setMData

public Command setMData(byte[] mData)

setMData

public Command setMData(ByteBuffer mData)

unsetMData

public void unsetMData()

isSetMData

public boolean isSetMData()
Returns true if field mData is set (has been assigned a value) and false otherwise


setMDataIsSet

public void setMDataIsSet(boolean value)

setFieldValue

public void setFieldValue(Command._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<Command,Command._Fields>

getFieldValue

public Object getFieldValue(Command._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<Command,Command._Fields>

isSet

public boolean isSet(Command._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<Command,Command._Fields>

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(Command that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(Command other)
Specified by:
compareTo in interface Comparable<Command>

fieldForId

public Command._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<Command,Command._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<Command,Command._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<Command,Command._Fields>
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2013. All Rights Reserved.