Package org.voltdb

Examples of org.voltdb.CatalogContext


    // -----------------------------------------------------------------
   
    @Override
    public void load() throws IOException {
        if (debug.val) LOG.debug("Begin to load tables...");
        CatalogContext catalogContext = this.getCatalogContext();
       
        // Load Histograms
        if (debug.val) LOG.debug("Loading data files for histograms");
        this.loadHistograms(catalogContext);
       
View Full Code Here


        final String tableName = catalog_tbl.getName();
        final boolean is_airport = tableName.equals(SEATSConstants.TABLENAME_AIRPORT);
        final boolean is_flight = tableName.equals(SEATSConstants.TABLENAME_FLIGHT);
        final boolean is_customer = tableName.equals(SEATSConstants.TABLENAME_CUSTOMER);
        final boolean is_reservation = tableName.equals(SEATSConstants.TABLENAME_RESERVATION);
        final CatalogContext catalogContext = this.getCatalogContext();
       
        if (debug.val)
            LOG.debug(String.format("Generating new records for table %s [batchSize=%d]",
                      tableName, batch_size));
        final VoltTable vt = CatalogUtil.getVoltTable(catalog_tbl);
View Full Code Here

       
        LOG.info("Parsing input files...");
        generator.parseInputFiles();
        LOG.info("Finished parsing input files...");

        CatalogContext catalogContext = null;
        try {
            catalogContext = this.getCatalogContext();
        } catch (Exception ex) {
            LOG.error("Failed to retrieve already compiled catalog", ex);
            System.exit(1);
View Full Code Here

            }
            Catalog newCatalog = new Catalog();
            newCatalog.execute(newCatalogCommands);

            // get the current catalog
            CatalogContext context = VoltDB.instance().getCatalogContext();

            // store the version of the catalog the diffs were created against.
            // verified when / if the update procedure runs in order to verify
            // catalogs only move forward
            retval.expectedCatalogVersion = context.catalog.getCatalogVersion();
View Full Code Here

            profile.enableTemporalSkew(temporal_window, temporal_total);
            LOG.info(String.format("Enabling temporal skew [window=%d, total=%d]", temporal_window, temporal_total));
        }
       
        // Catalog
        CatalogContext _catalog = null;
        try {
            _catalog = this.getCatalogContext();
        } catch (Exception ex) {
            LOG.error("Failed to retrieve already compiled catalog", ex);
            System.exit(1);
View Full Code Here

    @Override
    public void load() {
        if (debug.val)
            LOG.debug("Starting SimpleLoader");

        final CatalogContext catalogContext = this.getCatalogContext();
        final Table catalog_tbl = catalogContext.getTableByName("STABLE");   // Constant
        final AtomicLong total = new AtomicLong(0);
       
        // Multi-threaded loader
        final int rows_per_thread = (int)Math.ceil(init_record_count / (double)this.loadthreads);
        final List<Runnable> runnables = new ArrayList<Runnable>();
View Full Code Here

        } // FOR
    }

    @Override
    public void runLoop() {
        CatalogContext catalog = this.getCatalogContext();
        for (Table catalog_tbl : catalog.database.getTables()) {
            // Create an empty VoltTable handle and then populate it in batches
            // to be sent to the DBMS
            VoltTable table = CatalogUtil.getVoltTable(catalog_tbl);
            try {
View Full Code Here

    @Override
    public void load() {
        if (debug.val)
            LOG.debug("Starting YCSBLoader");

        final CatalogContext catalogContext = this.getCatalogContext();
        final Table catalog_tbl = catalogContext.getTableByName(YCSBConstants.TABLE_NAME);
        final AtomicLong total = new AtomicLong(0);
       
        // Multi-threaded loader
        final int rows_per_thread = (int)Math.ceil(init_record_count / (double)this.loadthreads);
        final List<Runnable> runnables = new ArrayList<Runnable>();
View Full Code Here

        }
    }
   
    @Override
    public void load() throws IOException {
        final CatalogContext catalogContext = this.getCatalogContext();
        try {
            // Load Data
            this.loadUsers(catalogContext.database);
            this.loadPages(catalogContext.database);
            this.loadWatchlist(catalogContext.database);
View Full Code Here

    AdHocPlannedStmtBatch compileAdHocPlan(AdHocPlannerWork work) {

        // record the catalog version the query is planned against to
        // catch races vs. updateApplicationCatalog.
        CatalogContext context = work.catalogContext;
        if (context == null) {
            context = VoltDB.instance().getCatalogContext();
        }

        final PlannerTool ptool = context.m_ptool;
View Full Code Here

TOP

Related Classes of org.voltdb.CatalogContext

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.