Package edu.brown.workload

Examples of edu.brown.workload.TransactionTrace.debug()


                target_txn = txn;
                break;
            }
        } // FOR
        assertNotNull(target_txn);
        System.err.println(target_txn.debug(catalogContext.database));
       
        // Now change partitioning
        MultiProcParameter catalog_param = MultiProcParameter.get(catalog_proc.getParameters().get(0), catalog_proc.getParameters().get(1));
        assertNotNull(catalog_param);
        catalog_proc.setPartitionparameter(catalog_param.getIndex());
View Full Code Here


                assertEquals(TARGET_PROCEDURE, txn.getCatalogItemName());
                for (ProcParameter param : this.array_params) {
                    int param_idx = param.getIndex();
                    assert(param_idx < txn.getParamCount());
                    Object txn_param = txn.getParam(param_idx);
                    assert(ClassUtil.isArray(txn_param)) : "Param Idx #" + param_idx + "\n" + txn.debug(catalog_db);
                    assertEquals(ARRAY_SIZE, ((Object[])txn_param).length);
                } // FOR
                count++;
            }
        } // WHILE
View Full Code Here

                assertEquals(TARGET_PROCEDURE, txn.getCatalogItemName());
                for (ProcParameter param : this.array_params) {
                    int param_idx = param.getIndex();
                    assert(param_idx < txn.getParamCount());
                    Object txn_param = txn.getParam(param_idx);
                    assert(ClassUtil.isArray(txn_param)) : "Param Idx #" + param_idx + "\n" + txn.debug(catalog_db);
                    assert(((Object[])txn_param).length < ARRAY_SIZE);
                } // FOR
                count++;
            }
        } // WHILE
View Full Code Here

            protected FilterResult filter(AbstractTraceElement<? extends CatalogType> element) {
                if (element instanceof TransactionTrace) {
                    TransactionTrace xact = (TransactionTrace)element;
                    try {
                        int partition = p_estimator.getBasePartition(xact);
                        if (partition == HStoreConstants.NULL_PARTITION_ID) System.err.println(xact.debug(catalog_db));
                        assert(partition != HStoreConstants.NULL_PARTITION_ID);
                       
                        if (txn_for_partition.get(partition)) {
                            return (FilterResult.SKIP);   
                        }
View Full Code Here

            protected FilterResult filter(AbstractTraceElement<? extends CatalogType> element) {
                if (element instanceof TransactionTrace) {
                    TransactionTrace xact = (TransactionTrace)element;
                    try {
                        int partition = p_estimator.getBasePartition(xact);
                        if (partition == HStoreConstants.NULL_PARTITION_ID) System.err.println(xact.debug(catalog_db));
                        assert(partition != HStoreConstants.NULL_PARTITION_ID);
                       
                        double next = rand.nextDouble();
                        double prob = probs.get(partition);
                        boolean skip = (next > prob);
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.