Package org.fusesource.hawtdb.internal.page.TransactionBenchmarker

Examples of org.fusesource.hawtdb.internal.page.TransactionBenchmarker.Callback


        });
    }
   
   
    private void preallocate(final int INITIAL_PAGE_COUNT) {
        benchmark.setSetup(new Callback(){
            public void run(TxPageFileFactory pff) throws Exception {
                Transaction tx = pff.getTxPageFile().tx();
                for (int i = 0; i < INITIAL_PAGE_COUNT; i++) {
                    int page = tx.allocator().alloc(1);
                    tx.write(page, new Buffer(THE_DATA));
View Full Code Here

TOP

Related Classes of org.fusesource.hawtdb.internal.page.TransactionBenchmarker.Callback

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.