Package org.apache.kahadb.page

Examples of org.apache.kahadb.page.Transaction$Closure


    }
   
    @Override
    protected Index<String, Long> createIndex() throws Exception {

        Transaction tx = pf.tx();
        long id = tx.allocate().getPageId();
        tx.commit();

        BTreeIndex<String, Long> index = new BTreeIndex<String, Long>(pf, id);
        index.setKeyMarshaller(StringMarshaller.INSTANCE);
        index.setValueMarshaller(LongMarshaller.INSTANCE);
       
View Full Code Here


        return index;
    }
   
    @Override
    protected void dumpIndex(Index<String, Long> index) throws IOException {
        Transaction tx = pf.tx();
        ((BTreeIndex)index).printStructure(tx, System.out);
    }
View Full Code Here

TOP

Related Classes of org.apache.kahadb.page.Transaction$Closure

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.