Package org.rocksdb

Examples of org.rocksdb.WriteBatch.iterate()


            }
        }

        // attempt to read test data back from the WriteBatch by iterating with a handler
        final CapturingWriteBatchHandler handler = new CapturingWriteBatchHandler();
        batch.iterate(handler);

        // compare the results to the test data
        final List<Tuple<Action, Tuple<byte[], byte[]>>> actualEvents = handler.getEvents();
        assertThat(testEvents.size()).isSameAs(actualEvents.size());
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.