Package org.gridgain.tpcds.query
Class QueryGenerator
java.lang.Object
org.gridgain.tpcds.query.QueryGenerator
TPC-DS Query generator.
This class generates queries by processing predefined FreeMarker templates with query parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgenerateQuery(String queryTemplate, boolean useSecondaryStorage) Generates Query SQL for a given table using supplied zone and storage profile parameters.
-
Constructor Details
-
QueryGenerator
public QueryGenerator()
-
-
Method Details
-
generateQuery
Generates Query SQL for a given table using supplied zone and storage profile parameters.- Parameters:
queryTemplate- The name of the TPC-DS query template.useSecondaryStorage- Whenever the query should use secondary storage.- Returns:
- Generated Query SQL statement as a String.
- Throws:
IllegalStateException- if there is an error while loading query sql.
-