Package edu.brown.hstore.estimators.markov

Examples of edu.brown.hstore.estimators.markov.MarkovEstimator


                LOG.debug(String.format("Creating %s for %s",
                          TransactionEstimator.class.getSimpleName(), singleton.getSiteName()));
            TransactionEstimator t_estimator = null;
            if (hstore_conf.site.markov_enable) {
                if (hstore_conf.site.markov_fixed == false && markovs != null) {
                    t_estimator = new MarkovEstimator(catalogContext, p_estimator, local_markovs);
                } else if (hstore_conf.site.markov_fixed) {
                    t_estimator = AbstractFixedEstimator.factory(p_estimator, singleton.getCatalogContext());
                }
            }
            if (first && t_estimator != null)
View Full Code Here


        assertNotNull(multip_trace);
        assertFalse(multip_path.isEmpty());
        assertNotNull(singlep_trace);
       
        // Setup
        this.t_estimator = new MarkovEstimator(catalogContext, p_estimator, markovs);
        this.thresholds = new EstimationThresholds();
    }
View Full Code Here

       
        for (SplitType type : SplitType.values()) {
            this.split_percentages[type.ordinal()] = type.percentage;
        } // FOR
       
        this.global_t_estimator = new MarkovEstimator(this.catalogContext, this.p_estimator, this.global_markov);
        this.global_costmodel = new MarkovCostModel(catalogContext, this.p_estimator, this.global_t_estimator, this.thresholds);
        for (Integer p : FeatureClusterer.this.all_partitions) {
            this.global_markov.getOrCreate(p, FeatureClusterer.this.catalog_proc).initialize();
        } // FOR
    }
View Full Code Here

           
            // But then only initialize the partition-specific data structures
            for (int p : FeatureClusterer.this.all_partitions) {
                this.clusters_per_partition[p] = new ObjectHistogram<Integer>();
                this.markovs_per_partition[p] = new TxnToClusterMarkovGraphsContainer();
                this.t_estimators_per_partition[p] = new MarkovEstimator(catalogContext, p_estimator, this.markovs_per_partition[p]);
                this.costmodels_per_partition[p] = new MarkovCostModel(catalogContext, p_estimator, this.t_estimators_per_partition[p], thresholds);
            } // FOR
        }
View Full Code Here

                    assert (profiler != null);

                    MarkovCostModel costmodels[] = thread_costmodels[thread_id];
                    for (int p = 0; p < num_partitions; p++) {
                        MarkovGraphsContainer markovs = (global ? thread_markovs[thread_id].get(MarkovUtil.GLOBAL_MARKOV_CONTAINER_ID) : thread_markovs[thread_id].get(p));
                        MarkovEstimator t_estimator = new MarkovEstimator(args.catalogContext, p_estimator, markovs);
                        costmodels[p] = new MarkovCostModel(args.catalogContext, p_estimator, t_estimator, args.thresholds);
                        if (force_fullpath)
                            thread_costmodels[thread_id][p].forceFullPathComparison();
                        if (force_regenerate)
                            thread_costmodels[thread_id][p].forceRegenerateMarkovEstimates();
View Full Code Here

//            markovs = MarkovUtil.load(catalogContext.database, file.getAbsolutePath());
            markovs = MarkovGraphsContainerUtil.createBasePartitionMarkovGraphsContainer(catalogContext, clone, p_estimator);
            assertNotNull(markovs);
           
            // And then populate the MarkovCostModel
            t_estimator = new MarkovEstimator(catalogContext, p_estimator, markovs);
        }
       
        this.costmodel = new MarkovCostModel(catalogContext, p_estimator, t_estimator, thresholds);
       
        // Take a TransactionTrace and throw it at the estimator to get our path info
View Full Code Here

                String msg = String.format("Cannot recompute markov graphs because the estimator " +
                                       "at partition %d is not a MarkovEstimator", partitionId);
                throw new VoltAbortException(msg);
            }
               
            MarkovEstimator t_estimator = (MarkovEstimator)this.executor.getTransactionEstimator();
            assert(t_estimator != null);
            MarkovGraphsContainer markovs = t_estimator.getMarkovGraphsContainer();
           
            if (t_estimator.getMarkovGraphsContainer() != null) {
                boolean is_global = t_estimator.getMarkovGraphsContainer().isGlobal();

                // We will only write out our file if we are the first partition in the list at this site
                if (is_global == false || (is_global == true && isFirstLocalPartition())) {
                   
                    if (debug.val) LOG.debug(String.format("Recalculating MarkovGraph probabilities at partition %d [save=%s, global=%s]",
View Full Code Here

TOP

Related Classes of edu.brown.hstore.estimators.markov.MarkovEstimator

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.