MCPcopy Create free account
hub / github.com/e2wugui/zeze / buildSplitPut

Method buildSplitPut

ZezeJava/ZezeJava/src/main/java/Zeze/Dbh2/Dbh2.java:642–650  ·  view source on GitHub ↗
(RocksIterator it)

Source from the content-addressed store, hash-verified

640 }
641
642 private SplitPut buildSplitPut(RocksIterator it) {
643 var r = new SplitPut();
644 r.Argument.setFromTransaction(false);
645 var count = dbh2Config.getSplitPutCount();
646 for (; it.isValid() && count > 0; it.next(), --count) {
647 r.Argument.getPuts().put(new Binary(it.key()), new Binary(it.value()));
648 }
649 return r;
650 }
651
652 public long splitPutNext(boolean isMove, SplitPut r, RocksIterator it, long serialNo) {
653 try {

Callers 2

startSplitMethod · 0.95
splitPutNextMethod · 0.95

Calls 8

getSplitPutCountMethod · 0.80
isValidMethod · 0.80
nextMethod · 0.65
putMethod · 0.65
keyMethod · 0.65
valueMethod · 0.65
setFromTransactionMethod · 0.45
getPutsMethod · 0.45

Tested by

no test coverage detected