|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.blur.thrift.generated.BlurQueryStatus
public class BlurQueryStatus
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.
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 |
---|
public BlurQuery query
public Map<String,CpuTime> cpuTimes
public int completeShards
public int totalShards
public QueryState state
QueryState
public String uuid
public Status status
Status
public User user
public static final Map<BlurQueryStatus._Fields,FieldMetaData> metaDataMap
Constructor Detail |
---|
public BlurQueryStatus()
public BlurQueryStatus(BlurQuery query, Map<String,CpuTime> cpuTimes, int completeShards, int totalShards, QueryState state, String uuid, Status status, User user)
public BlurQueryStatus(BlurQueryStatus other)
Method Detail |
---|
public BlurQueryStatus deepCopy()
deepCopy
in interface TBase<BlurQueryStatus,BlurQueryStatus._Fields>
public void clear()
TBase
clear
in interface TBase<BlurQueryStatus,BlurQueryStatus._Fields>
public BlurQuery getQuery()
public BlurQueryStatus setQuery(BlurQuery query)
public void unsetQuery()
public boolean isSetQuery()
public void setQueryIsSet(boolean value)
public int getCpuTimesSize()
public void putToCpuTimes(String key, CpuTime val)
public Map<String,CpuTime> getCpuTimes()
public BlurQueryStatus setCpuTimes(Map<String,CpuTime> cpuTimes)
public void unsetCpuTimes()
public boolean isSetCpuTimes()
public void setCpuTimesIsSet(boolean value)
public int getCompleteShards()
public BlurQueryStatus setCompleteShards(int completeShards)
public void unsetCompleteShards()
public boolean isSetCompleteShards()
public void setCompleteShardsIsSet(boolean value)
public int getTotalShards()
public BlurQueryStatus setTotalShards(int totalShards)
public void unsetTotalShards()
public boolean isSetTotalShards()
public void setTotalShardsIsSet(boolean value)
public QueryState getState()
QueryState
public BlurQueryStatus setState(QueryState state)
QueryState
public void unsetState()
public boolean isSetState()
public void setStateIsSet(boolean value)
public String getUuid()
public BlurQueryStatus setUuid(String uuid)
public void unsetUuid()
public boolean isSetUuid()
public void setUuidIsSet(boolean value)
public Status getStatus()
Status
public BlurQueryStatus setStatus(Status status)
Status
public void unsetStatus()
public boolean isSetStatus()
public void setStatusIsSet(boolean value)
public User getUser()
public BlurQueryStatus setUser(User user)
public void unsetUser()
public boolean isSetUser()
public void setUserIsSet(boolean value)
public void setFieldValue(BlurQueryStatus._Fields field, Object value)
TBase
setFieldValue
in interface TBase<BlurQueryStatus,BlurQueryStatus._Fields>
public Object getFieldValue(BlurQueryStatus._Fields field)
TBase
getFieldValue
in interface TBase<BlurQueryStatus,BlurQueryStatus._Fields>
public boolean isSet(BlurQueryStatus._Fields field)
isSet
in interface TBase<BlurQueryStatus,BlurQueryStatus._Fields>
public boolean equals(Object that)
equals
in class Object
public boolean equals(BlurQueryStatus that)
public int hashCode()
hashCode
in class Object
public int compareTo(BlurQueryStatus other)
compareTo
in interface Comparable<BlurQueryStatus>
public BlurQueryStatus._Fields fieldForId(int fieldId)
TBase
fieldForId
in interface TBase<BlurQueryStatus,BlurQueryStatus._Fields>
public void read(TProtocol iprot) throws TException
TBase
read
in interface TBase<BlurQueryStatus,BlurQueryStatus._Fields>
iprot
- Input protocol
TException
public void write(TProtocol oprot) throws TException
TBase
write
in interface TBase<BlurQueryStatus,BlurQueryStatus._Fields>
oprot
- Output protocol
TException
public String toString()
toString
in class Object
public void validate() throws TException
TException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |