Package edu.brown.hstore

Examples of edu.brown.hstore.MockHStoreSite


            markovs = MarkovGraphsContainerUtil.createBasePartitionMarkovGraphsContainer(catalogContext,
                                                                                         workload, p_estimator);
        }
        assertNotNull(markovs);
       
        this.hstore_site = new MockHStoreSite(0, catalogContext, HStoreConf.singleton());
        this.checker = new MarkovConflictChecker(catalogContext, thresholds);
    }
View Full Code Here


    @Before
    public void setUp() throws Exception {
        super.setUp(ProjectType.TM1);
        this.addPartitions(NUM_PARTITIONS);
       
        this.hstore_site = new MockHStoreSite(0, catalogContext, HStoreConf.singleton());
        this.checker = new TableConflictChecker(catalogContext);
    }
View Full Code Here

            @Override
            protected VoltTable[] getReadWriteSets(AbstractTransaction ts) {
                return readWriteSets.get(ts);
            }
        };
        this.hstore_site = new MockHStoreSite(0, catalogContext, HStoreConf.singleton());
    }
View Full Code Here

        for (int i = 0; i < this.batchStmts.length; i++) {
            assertNotNull(this.batchStmts[i]);
            assertNotNull(this.batchParams[i]);
        } // FOR
       
        this.hstore_site = new MockHStoreSite(0, catalogContext, HStoreConf.singleton());
        this.executor = (MockPartitionExecutor)this.hstore_site.getPartitionExecutor(BASE_PARTITION);
        this.depTracker = this.executor.getDependencyTracker();
        assertNotNull(this.depTracker);
       
        this.ts = new LocalTransaction(this.hstore_site);
View Full Code Here

       
        // Create a fake cluster of two HStoreSites, each with two partitions
        // This will allow us to test same site communication as well as cross-site communication
        this.initializeCatalog(NUM_HOSTS, NUM_SITES_PER_HOST, NUM_PARTITIONS_PER_SITE);
        for (int i = 0; i < NUM_SITES; i++) {
            this.sites[i] = new MockHStoreSite(i, catalogContext, HStoreConf.singleton());
           
            // We have to make our fake ExecutionSites for each Partition at this site
            for (int p : this.sites[i].getLocalPartitionIds().values()) {
                MockPartitionExecutor executor = new MockPartitionExecutor(p, catalogContext, p_estimator);
                this.sites[i].addPartitionExecutor(p, executor);
View Full Code Here

        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());
            this.coordinators[i] = this.hstore_sites[i].initHStoreCoordinator();

            // We have to make our fake ExecutionSites for each Partition at
            // this site
            // for (Partition catalog_part : catalog_site.getPartitions()) {
View Full Code Here

        HStoreConf hstore_conf = HStoreConf.singleton();
        hstore_conf.site.commandlog_enable = false;
        hstore_conf.site.commandlog_timeout = 1000;

        Site catalog_site = CollectionUtil.first(catalogContext.sites);
        hstore_site = new MockHStoreSite(catalog_site.getId(), catalogContext, hstore_conf);
        assert(hstore_site.isLocalPartition(0));
       
        outputFile = FileUtil.getTempFile("log");
        logger = new CommandLogWriter(hstore_site, outputFile);
        loggerThread = new Thread(this.logger);
View Full Code Here

TOP

Related Classes of edu.brown.hstore.MockHStoreSite

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.