Package com.oltpbenchmark.catalog

Examples of com.oltpbenchmark.catalog.Catalog


     */
    public void testCreateDatabase() throws Exception {
        this.benchmark.createDatabase();

        // Make sure that we get back some tables
        Catalog catalog = this.benchmark.getCatalog();
        assertNotNull(catalog);
        assertFalse(catalog.getTables().isEmpty());

        // Just make sure that there are no empty tables
        for (Table catalog_tbl : catalog.getTables()) {
            assert (catalog_tbl.getColumnCount() > 0) : "Missing columns for " + catalog_tbl;
            System.err.println(catalog_tbl);
        } // FOR
    }
View Full Code Here


    protected void setUp() throws Exception {
        super.setUp();
       
        // Get our catalog information
        this.benchmark = new MockBenchmark();
        this.catalog = new Catalog(this.benchmark);
        assertNotNull(this.catalog);
    }
View Full Code Here

   
    @Override
    protected void setUp() throws Exception {
        super.setUp(SEATSBenchmark.class);
       
        Catalog catalog = new Catalog(this.benchmark);
        assertNotNull(catalog);
        this.catalog_tbl = catalog.getTable("AIRLINE");
        assertNotNull(catalog.toString(), this.catalog_tbl);
        assertFalse(this.catalog_tbl.getColumnCount() == 0);
    }
View Full Code Here

    public BenchmarkModule(String benchmarkName, WorkloadConfiguration workConf, boolean withCatalog) {
        assert (workConf != null) : "The WorkloadConfiguration instance is null.";

        this.benchmarkName = benchmarkName;
        this.workConf = workConf;
        this.catalog = (withCatalog ? new Catalog(this) : null);
        File xmlFile = this.getSQLDialect();
        this.dialects = new StatementDialects(this.workConf.getDBType(), xmlFile);
    }
View Full Code Here

TOP

Related Classes of com.oltpbenchmark.catalog.Catalog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.