org.apache.blur.thrift.generated
Class CpuTime

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

public class CpuTime
extends Object
implements TBase<CpuTime,CpuTime._Fields>, Serializable, Cloneable

Holds the cpu time for a query executing on a single shard in a table.

See Also:
Serialized Form

Nested Class Summary
static class CpuTime._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 long cpuTime
          The total cpu time for the query on the given shard.
static Map<CpuTime._Fields,FieldMetaData> metaDataMap
           
 long realTime
          The real time of the query execution for a given shard.
 
Constructor Summary
CpuTime()
           
CpuTime(CpuTime other)
          Performs a deep copy on other.
CpuTime(long cpuTime, long realTime)
           
 
Method Summary
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(CpuTime other)
           
 CpuTime deepCopy()
           
 boolean equals(CpuTime that)
           
 boolean equals(Object that)
           
 CpuTime._Fields fieldForId(int fieldId)
          Get the F instance that corresponds to fieldId.
 long getCpuTime()
          The total cpu time for the query on the given shard.
 Object getFieldValue(CpuTime._Fields field)
          Get a field's value by field variable.
 long getRealTime()
          The real time of the query execution for a given shard.
 int hashCode()
           
 boolean isSet(CpuTime._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetCpuTime()
          Returns true if field cpuTime is set (has been assigned a value) and false otherwise
 boolean isSetRealTime()
          Returns true if field realTime is set (has been assigned a value) and false otherwise
 void read(TProtocol iprot)
          Reads the TObject from the given input protocol.
 CpuTime setCpuTime(long cpuTime)
          The total cpu time for the query on the given shard.
 void setCpuTimeIsSet(boolean value)
           
 void setFieldValue(CpuTime._Fields field, Object value)
          Set a field's value by field variable.
 CpuTime setRealTime(long realTime)
          The real time of the query execution for a given shard.
 void setRealTimeIsSet(boolean value)
           
 String toString()
           
 void unsetCpuTime()
           
 void unsetRealTime()
           
 void validate()
           
 void write(TProtocol oprot)
          Writes the objects out to the protocol
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

cpuTime

public long cpuTime
The total cpu time for the query on the given shard.


realTime

public long realTime
The real time of the query execution for a given shard.


metaDataMap

public static final Map<CpuTime._Fields,FieldMetaData> metaDataMap
Constructor Detail

CpuTime

public CpuTime()

CpuTime

public CpuTime(long cpuTime,
               long realTime)

CpuTime

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

Method Detail

deepCopy

public CpuTime deepCopy()
Specified by:
deepCopy in interface TBase<CpuTime,CpuTime._Fields>

clear

public void clear()
Description copied from interface: TBase
Return to the state of having just been initialized, as though you had just called the default constructor.

Specified by:
clear in interface TBase<CpuTime,CpuTime._Fields>

getCpuTime

public long getCpuTime()
The total cpu time for the query on the given shard.


setCpuTime

public CpuTime setCpuTime(long cpuTime)
The total cpu time for the query on the given shard.


unsetCpuTime

public void unsetCpuTime()

isSetCpuTime

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


setCpuTimeIsSet

public void setCpuTimeIsSet(boolean value)

getRealTime

public long getRealTime()
The real time of the query execution for a given shard.


setRealTime

public CpuTime setRealTime(long realTime)
The real time of the query execution for a given shard.


unsetRealTime

public void unsetRealTime()

isSetRealTime

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


setRealTimeIsSet

public void setRealTimeIsSet(boolean value)

setFieldValue

public void setFieldValue(CpuTime._Fields field,
                          Object value)
Description copied from interface: TBase
Set a field's value by field variable. Primitive types must be "boxed" in the appropriate object wrapper type.

Specified by:
setFieldValue in interface TBase<CpuTime,CpuTime._Fields>

getFieldValue

public Object getFieldValue(CpuTime._Fields field)
Description copied from interface: TBase
Get a field's value by field variable. Primitive types will be wrapped in the appropriate "boxed" types.

Specified by:
getFieldValue in interface TBase<CpuTime,CpuTime._Fields>

isSet

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

Specified by:
isSet in interface TBase<CpuTime,CpuTime._Fields>

equals

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

equals

public boolean equals(CpuTime that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public CpuTime._Fields fieldForId(int fieldId)
Description copied from interface: TBase
Get the F instance that corresponds to fieldId.

Specified by:
fieldForId in interface TBase<CpuTime,CpuTime._Fields>

read

public void read(TProtocol iprot)
          throws TException
Description copied from interface: TBase
Reads the TObject from the given input protocol.

Specified by:
read in interface TBase<CpuTime,CpuTime._Fields>
Parameters:
iprot - Input protocol
Throws:
TException

write

public void write(TProtocol oprot)
           throws TException
Description copied from interface: TBase
Writes the objects out to the protocol

Specified by:
write in interface TBase<CpuTime,CpuTime._Fields>
Parameters:
oprot - Output protocol
Throws:
TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws TException
Throws:
TException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.