Class QueryGenerator

java.lang.Object
org.gridgain.tpcds.query.QueryGenerator

public class QueryGenerator extends Object
TPC-DS Query generator.

This class generates queries by processing predefined FreeMarker templates with query parameters.

  • Constructor Details

    • QueryGenerator

      public QueryGenerator()
  • Method Details

    • generateQuery

      public static String generateQuery(String queryTemplate, boolean useSecondaryStorage)
      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.