Package com.persistit

Examples of com.persistit.Accumulator$SeqAccumulator


import com.persistit.exception.PersistitInterruptedException;

public class AccumulatorAdapter {

    public static long getSnapshot(AccumInfo accumInfo, Tree tree) throws PersistitInterruptedException {
        Accumulator accumulator = getAccumulator(accumInfo, tree);
        return accumulator.getSnapshotValue();
    }
View Full Code Here


        Accumulator.SumAccumulator sum = (Accumulator.SumAccumulator)getAccumulator(accumInfo, exchange.getTree());
        sum.add(value);
    }
   
    public static long getLiveValue(AccumInfo accumInfo, Tree tree) {
        Accumulator accumulator = getAccumulator(accumInfo, tree);
        return accumulator.getLiveValue();
    }
View Full Code Here

TOP

Related Classes of com.persistit.Accumulator$SeqAccumulator

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.