org.apache.blur.thrift.generated
Class BlurQueryStatus

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

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

The BlurQueryStatus object hold the status of BlurQueries. The state of the query (QueryState), the number of shards the query is executing against, the number of shards that are complete, etc.

See Also:
Serialized Form

Nested Class Summary
static class BlurQueryStatus._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 int completeShards
          The number of completed shards.
 Map<String,CpuTime> cpuTimes
          A map of shard names to CpuTime, one for each shard in the table.
static Map<BlurQueryStatus._Fields,FieldMetaData> metaDataMap
           
 BlurQuery query
          The original query.
 QueryState state
          The state of the query.
 Status status
          The status of the query NOT_FOUND if uuid is not found else FOUND
 int totalShards
          The total number of shards that the query is executing against.
 User user
          The user executing the given query.
 String uuid
          The uuid of the query.
 
Constructor Summary
BlurQueryStatus()
           
BlurQueryStatus(BlurQuery query, Map<String,CpuTime> cpuTimes, int completeShards, int totalShards, QueryState state, String uuid, Status status, User user)
           
BlurQueryStatus(BlurQueryStatus other)
          Performs a deep copy on other.
 
Method Summary
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(BlurQueryStatus other)
           
 BlurQueryStatus deepCopy()
           
 boolean equals(BlurQueryStatus that)
           
 boolean equals(Object that)
           
 BlurQueryStatus._Fields fieldForId(int fieldId)
          Get the F instance that corresponds to fieldId.
 int getCompleteShards()
          The number of completed shards.
 Map<String,CpuTime> getCpuTimes()
          A map of shard names to CpuTime, one for each shard in the table.
 int getCpuTimesSize()
           
 Object getFieldValue(BlurQueryStatus._Fields field)
          Get a field's value by field variable.
 BlurQuery getQuery()
          The original query.
 QueryState getState()
          The state of the query.
 Status getStatus()
          The status of the query NOT_FOUND if uuid is not found else FOUND
 int getTotalShards()
          The total number of shards that the query is executing against.
 User getUser()
          The user executing the given query.
 String getUuid()
          The uuid of the query.
 int hashCode()
           
 boolean isSet(BlurQueryStatus._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetCompleteShards()
          Returns true if field completeShards is set (has been assigned a value) and false otherwise
 boolean isSetCpuTimes()
          Returns true if field cpuTimes is set (has been assigned a value) and false otherwise
 boolean isSetQuery()
          Returns true if field query is set (has been assigned a value) and false otherwise
 boolean isSetState()
          Returns true if field state is set (has been assigned a value) and false otherwise
 boolean isSetStatus()
          Returns true if field status is set (has been assigned a value) and false otherwise
 boolean isSetTotalShards()
          Returns true if field totalShards is set (has been assigned a value) and false otherwise
 boolean isSetUser()
          Returns true if field user is set (has been assigned a value) and false otherwise
 boolean isSetUuid()
          Returns true if field uuid is set (has been assigned a value) and false otherwise
 void putToCpuTimes(String key, CpuTime val)
           
 void read(TProtocol iprot)
          Reads the TObject from the given input protocol.
 BlurQueryStatus setCompleteShards(int completeShards)
          The number of completed shards.
 void setCompleteShardsIsSet(boolean value)
           
 BlurQueryStatus setCpuTimes(Map<String,CpuTime> cpuTimes)
          A map of shard names to CpuTime, one for each shard in the table.
 void setCpuTimesIsSet(boolean value)
           
 void setFieldValue(BlurQueryStatus._Fields field, Object value)
          Set a field's value by field variable.
 BlurQueryStatus setQuery(BlurQuery query)
          The original query.
 void setQueryIsSet(boolean value)
           
 BlurQueryStatus setState(QueryState state)
          The state of the query.
 void setStateIsSet(boolean value)
           
 BlurQueryStatus setStatus(Status status)
          The status of the query NOT_FOUND if uuid is not found else FOUND
 void setStatusIsSet(boolean value)
           
 BlurQueryStatus setTotalShards(int totalShards)
          The total number of shards that the query is executing against.
 void setTotalShardsIsSet(boolean value)
           
 BlurQueryStatus setUser(User user)
          The user executing the given query.
 void setUserIsSet(boolean value)
           
 BlurQueryStatus setUuid(String uuid)
          The uuid of the query.
 void setUuidIsSet(boolean value)
           
 String toString()
           
 void unsetCompleteShards()
           
 void unsetCpuTimes()
           
 void unsetQuery()
           
 void unsetState()
           
 void unsetStatus()
           
 void unsetTotalShards()
           
 void unsetUser()
           
 void unsetUuid()
           
 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

query

public BlurQuery query
The original query.


cpuTimes

public Map<String,CpuTime> cpuTimes
A map of shard names to CpuTime, one for each shard in the table.


completeShards

public int completeShards
The number of completed shards. The shard server will respond with how many are complete on that server, while the controller will aggregate all the shard server completed totals together.


totalShards

public int totalShards
The total number of shards that the query is executing against. The shard server will respond with how many shards are being queried on that server, while the controller will aggregate all the shard server totals together.


state

public QueryState state
The state of the query. e.g. RUNNING, INTERRUPTED, COMPLETE

See Also:
QueryState

uuid

public String uuid
The uuid of the query.


status

public Status status
The status of the query NOT_FOUND if uuid is not found else FOUND

See Also:
Status

user

public User user
The user executing the given query.


metaDataMap

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

BlurQueryStatus

public BlurQueryStatus()

BlurQueryStatus

public BlurQueryStatus(BlurQuery query,
                       Map<String,CpuTime> cpuTimes,
                       int completeShards,
                       int totalShards,
                       QueryState state,
                       String uuid,
                       Status status,
                       User user)

BlurQueryStatus

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

Method Detail

deepCopy

public BlurQueryStatus deepCopy()
Specified by:
deepCopy in interface TBase<BlurQueryStatus,BlurQueryStatus._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<BlurQueryStatus,BlurQueryStatus._Fields>

getQuery

public BlurQuery getQuery()
The original query.


setQuery

public BlurQueryStatus setQuery(BlurQuery query)
The original query.


unsetQuery

public void unsetQuery()

isSetQuery

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


setQueryIsSet

public void setQueryIsSet(boolean value)

getCpuTimesSize

public int getCpuTimesSize()

putToCpuTimes

public void putToCpuTimes(String key,
                          CpuTime val)

getCpuTimes

public Map<String,CpuTime> getCpuTimes()
A map of shard names to CpuTime, one for each shard in the table.


setCpuTimes

public BlurQueryStatus setCpuTimes(Map<String,CpuTime> cpuTimes)
A map of shard names to CpuTime, one for each shard in the table.


unsetCpuTimes

public void unsetCpuTimes()

isSetCpuTimes

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


setCpuTimesIsSet

public void setCpuTimesIsSet(boolean value)

getCompleteShards

public int getCompleteShards()
The number of completed shards. The shard server will respond with how many are complete on that server, while the controller will aggregate all the shard server completed totals together.


setCompleteShards

public BlurQueryStatus setCompleteShards(int completeShards)
The number of completed shards. The shard server will respond with how many are complete on that server, while the controller will aggregate all the shard server completed totals together.


unsetCompleteShards

public void unsetCompleteShards()

isSetCompleteShards

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


setCompleteShardsIsSet

public void setCompleteShardsIsSet(boolean value)

getTotalShards

public int getTotalShards()
The total number of shards that the query is executing against. The shard server will respond with how many shards are being queried on that server, while the controller will aggregate all the shard server totals together.


setTotalShards

public BlurQueryStatus setTotalShards(int totalShards)
The total number of shards that the query is executing against. The shard server will respond with how many shards are being queried on that server, while the controller will aggregate all the shard server totals together.


unsetTotalShards

public void unsetTotalShards()

isSetTotalShards

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


setTotalShardsIsSet

public void setTotalShardsIsSet(boolean value)

getState

public QueryState getState()
The state of the query. e.g. RUNNING, INTERRUPTED, COMPLETE

See Also:
QueryState

setState

public BlurQueryStatus setState(QueryState state)
The state of the query. e.g. RUNNING, INTERRUPTED, COMPLETE

See Also:
QueryState

unsetState

public void unsetState()

isSetState

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


setStateIsSet

public void setStateIsSet(boolean value)

getUuid

public String getUuid()
The uuid of the query.


setUuid

public BlurQueryStatus setUuid(String uuid)
The uuid of the query.


unsetUuid

public void unsetUuid()

isSetUuid

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


setUuidIsSet

public void setUuidIsSet(boolean value)

getStatus

public Status getStatus()
The status of the query NOT_FOUND if uuid is not found else FOUND

See Also:
Status

setStatus

public BlurQueryStatus setStatus(Status status)
The status of the query NOT_FOUND if uuid is not found else FOUND

See Also:
Status

unsetStatus

public void unsetStatus()

isSetStatus

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


setStatusIsSet

public void setStatusIsSet(boolean value)

getUser

public User getUser()
The user executing the given query.


setUser

public BlurQueryStatus setUser(User user)
The user executing the given query.


unsetUser

public void unsetUser()

isSetUser

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


setUserIsSet

public void setUserIsSet(boolean value)

setFieldValue

public void setFieldValue(BlurQueryStatus._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<BlurQueryStatus,BlurQueryStatus._Fields>

getFieldValue

public Object getFieldValue(BlurQueryStatus._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<BlurQueryStatus,BlurQueryStatus._Fields>

isSet

public boolean isSet(BlurQueryStatus._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<BlurQueryStatus,BlurQueryStatus._Fields>

equals

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

equals

public boolean equals(BlurQueryStatus that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

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

Specified by:
fieldForId in interface TBase<BlurQueryStatus,BlurQueryStatus._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<BlurQueryStatus,BlurQueryStatus._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<BlurQueryStatus,BlurQueryStatus._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.