|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.cmu.aura.service.query.Query
Represents a service query. A query selects a given set of attributes from a service (or services). A "select" expression specifies for which cases attributes are to be returned for. Attribute requirements, such as over what time interval a value is to be sampled, may be specified. A time limit on the query processing informs the service how much query processing time the client can tolerate. This is usually not set.
AttribReq,
ExpressionNode| Constructor Summary | |
Query(java.util.ArrayList sAttribs,
java.util.ArrayList serviceNames,
ExpressionNode expression,
java.util.ArrayList attribReqs,
long timeLimit)
Construct a Query. |
|
Query(java.util.ArrayList sAttribs,
java.util.ArrayList serviceNames,
ExpressionNode expression,
long timeLimit)
Construct a Query that has no attribute requirements. |
|
| Method Summary | |
java.util.ArrayList |
getAttribReqs()
Returns the attribute requirements for this query. |
ExpressionNode |
getExpression()
Returns this query's "select" expression. |
java.util.ArrayList |
getSAttribs()
Returns the selected attributes of this query. |
java.util.ArrayList |
getServiceNames()
Returns the target service names of this query. |
long |
getTimeLimit()
Returns the time limit of the query. |
java.lang.String |
toSQLForm()
Returns an SQL like representation of this query. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Query(java.util.ArrayList sAttribs,
java.util.ArrayList serviceNames,
ExpressionNode expression,
java.util.ArrayList attribReqs,
long timeLimit)
sAttribs - the attributes to selectserviceNames - the services that are to be queriedexpression - the "select" expression of this queryattribReqs - the requirements of attributestimeLimit - the query processing time limit
public Query(java.util.ArrayList sAttribs,
java.util.ArrayList serviceNames,
ExpressionNode expression,
long timeLimit)
sAttribs - the attributes to selectserviceNames - the services that are to be queriedexpression - the "select" expression of this querytimeLimit - the query processing time limit| Method Detail |
public java.util.ArrayList getSAttribs()
public java.util.ArrayList getServiceNames()
public ExpressionNode getExpression()
public java.util.ArrayList getAttribReqs()
public long getTimeLimit()
public java.lang.String toSQLForm()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||