com.google.visualization.datasource
Class QuerySplitter
java.lang.Object
com.google.visualization.datasource.QuerySplitter
public final class QuerySplitter
- extends Object
A utility class for splitting the user query into a data source query and a completion query.
The data source query is executed by the data source, the completion query is then
executed by the query engine.
The splitting is performed based on the capabilities that the data source declares it can
handle.
- Author:
- Yonatan B.Y.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
splitQuery
public static QueryPair splitQuery(Query query,
Capabilities capabilities)
throws DataSourceException
- Split the query into a data source query and completion query. The data source query runs
first directly on the underlying data. The completion query is run by
QueryEngine engine on the result of
the data source query.
- Parameters:
query - The Query to split.capabilities - The capabilities supported by the data source.
- Returns:
- A split query.
- Throws:
DataSourceException - Thrown if the capabilities are not supported.
Copyright © 2012 Google. All Rights Reserved.