public class QueryUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SUMMARIZED_QUERY_RESULT_VARIABLE
Name of the result variable used for queries which are summarised
|
Modifier and Type | Method and Description |
---|---|
static Query |
summarize(Query rawQuery)
Rewrites a query into summarised form
|
public static final String SUMMARIZED_QUERY_RESULT_VARIABLE
public static Query summarize(Query rawQuery)
This aims to rewrite the query such that the system being tested needs to
do all the work necessary to answer the query but only need return the
count of results rather than materialising and sending all the individual
result rows. Rewrites are based upon the type of the query so for some
types of query the summarised query may not request the system do the
exact same work as would have originally been required. This is primarily
true in the case of CONSTRUCT
and DESCRIBE
queries.
rawQuery
- Query to summariseCopyright © 2016. All rights reserved.