Search in sources :

Example 1 with AllTpccSQL

use of org.voltdb.AllTpccSQL in project voltdb by VoltDB.

the class TestParsedStatements method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    Catalog catalog = TPCCProjectBuilder.getTPCCSchemaCatalog();
    m_db = catalog.getClusters().get("cluster").getDatabases().get("database");
    URL url = TPCCProjectBuilder.class.getResource("tpcc-ddl.sql");
    m_hsql = HSQLInterface.loadHsqldb();
    try {
        m_hsql.runDDLFile(URLDecoder.decode(url.getPath(), "UTF-8"));
    } catch (UnsupportedEncodingException e) {
        e.printStackTrace();
        System.exit(-1);
    }
    m_allSQL = new AllTpccSQL();
}
Also used : UnsupportedEncodingException(java.io.UnsupportedEncodingException) Catalog(org.voltdb.catalog.Catalog) URL(java.net.URL) AllTpccSQL(org.voltdb.AllTpccSQL)

Aggregations

UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 URL (java.net.URL)1 AllTpccSQL (org.voltdb.AllTpccSQL)1 Catalog (org.voltdb.catalog.Catalog)1