Package edu.brown.hstore.specexec

Examples of edu.brown.hstore.specexec.PrefetchQueryPlanner


        this.listener_thread.setDaemon(true);
        this.eventLoop.setExitOnSigInt(true);
       
        // Initialize the PrefetchQueryPlanner if we're allowed to execute
        // speculative queries and we actually have some in the catalog
        PrefetchQueryPlanner tmpPlanner = null;
        if (hstore_conf.site.exec_prefetch_queries) {
            boolean has_prefetch = false;
            for (Procedure catalog_proc : this.catalogContext.procedures.values()) {
                if (catalog_proc.getPrefetchable()) {
                    has_prefetch = true;
                    break;
                }
            }
            if (has_prefetch) {
                tmpPlanner = new PrefetchQueryPlanner(this.catalogContext,
                                                      hstore_site.getPartitionEstimator());
            }
        }
        this.prefetchPlanner = tmpPlanner;
        this.transactionPrefetch_callback = (this.prefetchPlanner != null ? new TransactionPrefetchCallback() : null);
View Full Code Here


            stmtParams.get(m[0]).setProcparameter(procParams.get(m[1]));
        } // FOR

        assertNotNull(catalogContext.paramMappings);
       
        this.prefetcher = new PrefetchQueryPlanner(catalogContext, p_estimator);
        SQLStmt[] batchStmts = {new SQLStmt(catalog_stmt)};
        this.prefetcher.addPlanner(catalog_proc, estState.getPrefetchableStatements(), batchStmts);
       
        for (int i = 0; i < NUM_SITES; i++) {
            this.hstore_sites[i] = new MockHStoreSite(i, catalogContext, HStoreConf.singleton());
View Full Code Here

TOP

Related Classes of edu.brown.hstore.specexec.PrefetchQueryPlanner

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.