Package edu.brown.costmodel.SingleSitedCostModel

Examples of edu.brown.costmodel.SingleSitedCostModel.TransactionCacheEntry.debug()


                // nothing
                if (txn_entry.isSinglePartitioned()) {
                    singlepartition_ctrs[i] += txn_weight;
                    if (!partitions.isEmpty()) {
                        assert (txn_entry.getAllTouchedPartitionsHistogram().getValueCount() == 1) : txn_entry + " says it was single-partitioned but the partition count says otherwise:\n"
                                + txn_entry.debug();
                        singlepartition_with_partitions_ctrs[i] += txn_weight;
                    }
                    histogram_sp_procs.put(proc_key, txn_weight);

                    // If the txn runs on multiple partitions, then the cost
View Full Code Here


                    // isn't weighted the same as a txn with many
                    // multi-partition queries
                } else {
                    assert (!partitions.isEmpty()) : "No touched partitions for " + txn_trace;
                    if (partitions.size() == 1 && txn_entry.getExecutionPartition() != HStoreConstants.NULL_PARTITION_ID) {
                        assert (CollectionUtil.first(partitions) != txn_entry.getExecutionPartition()) : txn_entry.debug();
                        exec_mismatch_ctrs[i] += txn_weight;
                        partitions_touched[i] += txn_weight;
                    } else {
                        assert (partitions.size() > 1) : String.format("%s is not marked as single-partition but it only touches one partition\n%s", txn_trace, txn_entry.debug());
                    }
View Full Code Here

                    if (partitions.size() == 1 && txn_entry.getExecutionPartition() != HStoreConstants.NULL_PARTITION_ID) {
                        assert (CollectionUtil.first(partitions) != txn_entry.getExecutionPartition()) : txn_entry.debug();
                        exec_mismatch_ctrs[i] += txn_weight;
                        partitions_touched[i] += txn_weight;
                    } else {
                        assert (partitions.size() > 1) : String.format("%s is not marked as single-partition but it only touches one partition\n%s", txn_trace, txn_entry.debug());
                    }
                    partitions_touched[i] += (partitions.size() * txn_weight); // Txns
                    multipartition_ctrs[i] += txn_weight;
                    histogram_mp_procs.put(proc_key, txn_weight);
                }
View Full Code Here

        cost_model.getPartitionEstimator().initCatalog(clone_catalogContext);
        cost_model.estimateTransactionCost(clone_catalogContext, target_txn);
        entry = cost_model.getTransactionCacheEntry(target_txn);
        assertNotNull(entry);
        assert(entry.getExecutionPartition() != HStoreConstants.NULL_PARTITION_ID);
        if (!entry.isSinglePartitioned()) System.err.println(entry.debug());
        assert(entry.isSinglePartitioned());
    }
   
    /**
     * testMultiColumnPartitioning
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.