|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.visualization.datasource.query.parser.QueryBuilder
public class QueryBuilder
A singleton class that can parse a user query string, i.e., accept a string such as "SELECT dept, max(salary) GROUP BY dept" and return a Query object. This class basically wraps the QueryParser class that is auto-generated from the QueryParser.jj specification.
| Method Summary | |
|---|---|
static QueryBuilder |
getInstance()
Returns the singleton instance of this class. |
Query |
parseQuery(java.lang.String tqValue)
Parses a user query into a Query object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static QueryBuilder getInstance()
public Query parseQuery(java.lang.String tqValue)
throws InvalidQueryException
tqValue - The user query string.
InvalidQueryException - Thrown if the query is invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||