Package org.rocksdb

Examples of org.rocksdb.WriteBatch.clear()


    assertThat(b1.count()).isEqualTo(0);
    b2.put("a".getBytes("US-ASCII"), "va".getBytes("US-ASCII"));
    WriteBatchInternal.append(b1, b2);
    assertThat("Put(a, va)@200".equals(new String(getContents(b1), "US-ASCII")));
    assertThat(b1.count()).isEqualTo(1);
    b2.clear();
    b2.put("b".getBytes("US-ASCII"), "vb".getBytes("US-ASCII"));
    WriteBatchInternal.append(b1, b2);
    assertThat(("Put(a, va)@200" +
            "Put(b, vb)@201")
                .equals(new String(getContents(b1), "US-ASCII")));
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.