Package edu.brown.workload.filters

Examples of edu.brown.workload.filters.Filter


     */
    public void testSinglePartitionedUniformWorkload() throws Exception {
        // This workload should will only consist of single-partition txns and
        // is evenly spread out across all partitions
        final BitSet txn_for_partition = new BitSet(NUM_PARTITIONS);
        Filter filter = new Filter() {
            @Override
            protected void resetImpl() {
                // Nothing...
            }
           
View Full Code Here


        for (int i = 0; i < NUM_PARTITIONS; i++) {
            long cnt = h.get(i, 0);
            probs.put(i, cnt / 100.0d);
        } // FOR
       
        Filter filter = new Filter() {
            @Override
            protected void resetImpl() {
                // Nothing...
            }
           
View Full Code Here

            // (1) Filter by procedure name
            // (2) Filter on partitions that start on our BASE_PARTITION
            // (3) Filter to only include multi-partition txns
            // (4) Another limit to stop after allowing ### txns
            // Where is your god now???
            Filter filter = new ProcedureNameFilter(false)
                    .include(TARGET_PROCEDURE.getSimpleName())
                    .attach(new BasePartitionTxnFilter(p_estimator, BASE_PARTITION))
                    .attach(new ProcedureLimitFilter(WORKLOAD_XACT_LIMIT));
            workload.load(file, catalogContext.database, filter);
            assert(workload.getTransactionCount() > 0);
View Full Code Here

            // (1) Filter by procedure name
            // (2) Filter on partitions that start on our BASE_PARTITION
            // (3) Filter to only include multi-partition txns
            // (4) Another limit to stop after allowing ### txns
            // Where is your god now???
            Filter filter = new ProcedureNameFilter(false).include(TARGET_PROCEDURE.getSimpleName());
            filter.attach(new BasePartitionTxnFilter(p_estimator, BASE_PARTITION))
            // .attach(new MultiPartitionTxnFilter(p_estimator))
                    .attach(new ProcedureLimitFilter(WORKLOAD_XACT_LIMIT));
            workload.load(file, catalogContext.database, filter);
            // assertEquals(WORKLOAD_XACT_LIMIT, workload.getTransactionCount());
View Full Code Here

        if (workload == null) {
            catalog_proc = this.getProcedure(TARGET_PROCEDURE);
           
            File file = this.getWorkloadFile(ProjectType.TPCC);
            workload = new Workload(catalog);
            Filter filter = new ProcedureNameFilter(false)
                    .include(TARGET_PROCEDURE.getSimpleName())
                    .attach(new ProcedureLimitFilter(WORKLOAD_XACT_LIMIT));
            workload.load(file, catalog_db, filter);
            assert(workload.getTransactionCount() > 0);
           
View Full Code Here

TOP

Related Classes of edu.brown.workload.filters.Filter

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.