Examples of allocator()


Examples of org.fusesource.hawtdb.api.Transaction.allocator()

    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));
                }
                tx.commit();
            }
        });
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.