|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Object | +--condor.classad.Query
A parsed "query" in a very simple ad hoc query language inspired by SQL. This is a hack desiged to test the ClassAd machinery by sending a query to Condor Collector and interpreting the results. A query has the form
Query: 'select' SelectClause 'from' Identifier WhereClause
SelectClause: '*' | SelectionList
SelectionList: [ SelectionList ',' ] Identifier [ '=' Expression ]
WhereClause : [ 'where' Expression ]
| Field Summary | |
String |
fromClause
The "from" clause (original case preserved). |
Expr[] |
selectClause
The expressions in the SelectionClause. |
String[] |
selectNames
The Identifiers in the SelectionClause. |
Expr |
whereClause
The "where" clause or null if the "where" clause was omitted. |
| Constructor Summary | |
Query(Expr[] s,
String[] n,
String f,
Expr w)
Construct a query from its components. |
|
| Method Summary | |
static Query |
parse(ClassAdParser parser)
Create a Query from an exsiting parser. |
static Query |
parse(InputStream s)
Create a Query by parsing input from an InputStream. |
static Query |
parse(Reader s)
Create a Query by parsing input from a Reader. |
static Query |
parse(String s)
Create a Query by parsing a String. |
String |
toString()
|
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final Expr[] selectClause
public final String[] selectNames
public String fromClause
public Expr whereClause
| Constructor Detail |
public Query(Expr[] s,
String[] n,
String f,
Expr w)
s - the "select" clause expressions.n - the "select" clause identifiers.f - the "from" clause.w - the "where" clause (or null).| Method Detail |
public static Query parse(InputStream s)
s - the input source.
public static Query parse(Reader s)
s - input source.
public static Query parse(String s)
s - the input source.
public static Query parse(ClassAdParser parser)
parser - the input source.
public String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||