com.google.visualization.datasource
Class QuerySplitter

java.lang.Object
  extended by com.google.visualization.datasource.QuerySplitter

public final class QuerySplitter
extends java.lang.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.

Method Summary
static QueryPair splitQuery(Query query, Capabilities capabilities)
          Split the query into a data source query and completion query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 © 2009 Google. All Rights Reserved.