Package edu.brown.hstore.specexec.checkers

Examples of edu.brown.hstore.specexec.checkers.AbstractConflictChecker


            row[0] = remotePartition;
            vt.addRow(row);
            this.remoteExecutor.loadTable(100l, tbl, vt, false);
        } // FOR
       
        AbstractConflictChecker remoteChecker = new AbstractConflictChecker(catalogContext) {
            @Override
            public boolean shouldIgnoreTransaction(AbstractTransaction ts) {
                return false;
            }
            @Override
View Full Code Here


            for (int i = 0; i < this.executors.length; i++) {
                this.executorDbgs[i].getSpecExecScheduler().ignoreSpeculationType(specType);
            }
        }
       
        AbstractConflictChecker checker = new AbstractConflictChecker(null) {
            @Override
            public boolean shouldIgnoreTransaction(AbstractTransaction ts) {
                return (false);
            }
            @Override
View Full Code Here

    private void initSpecExecScheduler() {
        assert(this.specExecScheduler == null);
        assert(this.hstore_site != null);
       
        this.specExecCheckerType = SpeculationConflictCheckerType.get(hstore_conf.site.specexec_scheduler_checker);
        AbstractConflictChecker checker = null;
        switch (this.specExecCheckerType) {
            // -------------------------------
            // ROW-LEVEL
            // -------------------------------
            case MARKOV:
                // The MarkovConflictChecker is thread-safe, so we all of the partitions
                // at this site can reuse the same one.
                checker = MarkovConflictChecker.singleton(this.catalogContext, this.thresholds);
                break;
            // -------------------------------
            // TABLE-LEVEL
            // -------------------------------
            case TABLE:
                checker = new TableConflictChecker(this.catalogContext);
                break;
            // -------------------------------
            // UNSAFE
            // NOTE: You probably don't want to use this!
            // -------------------------------
            case UNSAFE:
                checker = new UnsafeConflictChecker(this.catalogContext, hstore_conf.site.specexec_unsafe_limit);
                LOG.warn(StringUtil.bold(String.format("Using %s in %s for partition %d. This is a bad idea!",
                         checker.getClass().getSimpleName(), this.getClass().getSimpleName(), this.partitionId)));
                break;
            // -------------------------------
            // OPTIMISTIC
            // -------------------------------
            case OPTIMISTIC:
View Full Code Here

TOP

Related Classes of edu.brown.hstore.specexec.checkers.AbstractConflictChecker

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.