|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--edu.cmu.aura.service.QueryResult
QueryResult represents the result of executing a query on a primitive service. The QueryResult contains the time, according to the service, at which the query finished executing, a flag indicating whether the service was able to provide a complete result, and a list of attribute sets obtained by executing the query. An attribute set is a list of selected attributes from a single entity or relation that matched a query (i.e. it is a "row" in the result).
| Constructor Summary | |
QueryResult()
Create a QueryResult. |
|
| Method Summary | |
void |
addAttribSet(java.util.ArrayList attribSet)
Add an attribute set to this query. |
void |
addSubResult(QueryResult subResult)
|
java.util.ArrayList |
getAttributeSet(int index)
Get a specified attribute set. |
int |
getNumAttribSets()
Get the number of attribute sets in this result. |
TimeInstant |
getTime()
Get the time at which this query finished executing. |
boolean |
isComplete()
Returns whether or not this QueryResult represents a complete result. |
void |
setComplete(boolean complete)
Sets whether or not this result is complete. |
void |
setTime(long time)
Set the time at which this query finished executing. |
void |
setTime(TimeInstant time)
Set the time at which this query finished executing. |
java.lang.String |
toString()
Convert this QueryResult to a String. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public QueryResult()
| Method Detail |
public TimeInstant getTime()
public void setTime(TimeInstant time)
time - the time at which this query finished executing.public void setTime(long time)
time - the time at which this query finished executing.public void setComplete(boolean complete)
complete - whether or not this result is complete.public boolean isComplete()
public void addAttribSet(java.util.ArrayList attribSet)
attribSet - the attribute set to add.public java.util.ArrayList getAttributeSet(int index)
index - the index of the attribute set to get.public int getNumAttribSets()
public void addSubResult(QueryResult subResult)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||