Examples of LMDBOptions


Examples of org.fusesource.lmdbjni.leveldb.LMDBOptions

    @Test
    public void testIssue26() throws IOException {

        LMDBFactory.pushMemoryPool(1024 * 512);
        try {
            LMDBOptions options = new LMDBOptions();
            options.createIfMissing(true);
            options.openFlags(NOSYNC); // this test would run too slow without this.

            LMDB db = (LMDB) factory.open(getTestDirectory(getName()), options);
            WriteOptions op = new WriteOptions();
            for (int i = 0; i < 1024 * 100; i++) {
                byte[] key = ByteBuffer.allocate(4).putInt(i).array();
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.