public class Query extends Object implements org.apache.thrift.TBase<Query,Query._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
Query._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<Query._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
Query() |
Query(Query other)
Performs a deep copy on other.
|
Query(String queryId,
String queryType,
Map<String,String> queryAttributes,
Map<String,Long> queryCounters,
Graph stageGraph,
List<Stage> stageList,
boolean done,
boolean started) |
Modifier and Type | Method and Description |
---|---|
void |
addToStageList(Stage elem) |
void |
clear() |
int |
compareTo(Query other) |
Query |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(Query that) |
Query._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(Query._Fields field) |
Map<String,String> |
getQueryAttributes() |
int |
getQueryAttributesSize() |
Map<String,Long> |
getQueryCounters() |
int |
getQueryCountersSize() |
String |
getQueryId() |
String |
getQueryType() |
Graph |
getStageGraph() |
List<Stage> |
getStageList() |
Iterator<Stage> |
getStageListIterator() |
int |
getStageListSize() |
int |
hashCode() |
boolean |
isDone() |
boolean |
isSet(Query._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetDone()
Returns true if field done is set (has been assigned a value) and false otherwise
|
boolean |
isSetQueryAttributes()
Returns true if field queryAttributes is set (has been assigned a value) and false otherwise
|
boolean |
isSetQueryCounters()
Returns true if field queryCounters is set (has been assigned a value) and false otherwise
|
boolean |
isSetQueryId()
Returns true if field queryId is set (has been assigned a value) and false otherwise
|
boolean |
isSetQueryType()
Returns true if field queryType is set (has been assigned a value) and false otherwise
|
boolean |
isSetStageGraph()
Returns true if field stageGraph is set (has been assigned a value) and false otherwise
|
boolean |
isSetStageList()
Returns true if field stageList is set (has been assigned a value) and false otherwise
|
boolean |
isSetStarted()
Returns true if field started is set (has been assigned a value) and false otherwise
|
boolean |
isStarted() |
void |
putToQueryAttributes(String key,
String val) |
void |
putToQueryCounters(String key,
long val) |
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setDone(boolean done) |
void |
setDoneIsSet(boolean value) |
void |
setFieldValue(Query._Fields field,
Object value) |
void |
setQueryAttributes(Map<String,String> queryAttributes) |
void |
setQueryAttributesIsSet(boolean value) |
void |
setQueryCounters(Map<String,Long> queryCounters) |
void |
setQueryCountersIsSet(boolean value) |
void |
setQueryId(String queryId) |
void |
setQueryIdIsSet(boolean value) |
void |
setQueryType(String queryType) |
void |
setQueryTypeIsSet(boolean value) |
void |
setStageGraph(Graph stageGraph) |
void |
setStageGraphIsSet(boolean value) |
void |
setStageList(List<Stage> stageList) |
void |
setStageListIsSet(boolean value) |
void |
setStarted(boolean started) |
void |
setStartedIsSet(boolean value) |
String |
toString() |
void |
unsetDone() |
void |
unsetQueryAttributes() |
void |
unsetQueryCounters() |
void |
unsetQueryId() |
void |
unsetQueryType() |
void |
unsetStageGraph() |
void |
unsetStageList() |
void |
unsetStarted() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<Query._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public Query()
public Query(String queryId, String queryType, Map<String,String> queryAttributes, Map<String,Long> queryCounters, Graph stageGraph, List<Stage> stageList, boolean done, boolean started)
public Query(Query other)
public Query deepCopy()
deepCopy
in interface org.apache.thrift.TBase<Query,Query._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<Query,Query._Fields>
public String getQueryId()
public void setQueryId(String queryId)
public void unsetQueryId()
public boolean isSetQueryId()
public void setQueryIdIsSet(boolean value)
public String getQueryType()
public void setQueryType(String queryType)
public void unsetQueryType()
public boolean isSetQueryType()
public void setQueryTypeIsSet(boolean value)
public int getQueryAttributesSize()
public void unsetQueryAttributes()
public boolean isSetQueryAttributes()
public void setQueryAttributesIsSet(boolean value)
public int getQueryCountersSize()
public void putToQueryCounters(String key, long val)
public void unsetQueryCounters()
public boolean isSetQueryCounters()
public void setQueryCountersIsSet(boolean value)
public Graph getStageGraph()
public void setStageGraph(Graph stageGraph)
public void unsetStageGraph()
public boolean isSetStageGraph()
public void setStageGraphIsSet(boolean value)
public int getStageListSize()
public void addToStageList(Stage elem)
public void unsetStageList()
public boolean isSetStageList()
public void setStageListIsSet(boolean value)
public boolean isDone()
public void setDone(boolean done)
public void unsetDone()
public boolean isSetDone()
public void setDoneIsSet(boolean value)
public boolean isStarted()
public void setStarted(boolean started)
public void unsetStarted()
public boolean isSetStarted()
public void setStartedIsSet(boolean value)
public void setFieldValue(Query._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<Query,Query._Fields>
public Object getFieldValue(Query._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<Query,Query._Fields>
public boolean isSet(Query._Fields field)
isSet
in interface org.apache.thrift.TBase<Query,Query._Fields>
public boolean equals(Query that)
public int compareTo(Query other)
compareTo
in interface Comparable<Query>
public Query._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<Query,Query._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<Query,Query._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<Query,Query._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2017 The Apache Software Foundation. All rights reserved.