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

Method putAndEdit

ZezeJava/ZezeJava/src/main/java/Zeze/Raft/RocksRaft/Test.java:318–326  ·  view source on GitHub ↗
(Rocks rocks, Table<Integer, Bean1> table)

Source from the content-addressed store, hash-verified

316 }
317
318 private static void putAndEdit(Rocks rocks, Table<Integer, Bean1> table) throws Exception {
319 rocks.newProcedure(() -> {
320 update(table, 0);
321 verifyChanges("{(tRocksRaft#0,1):State=1 PutValue=Bean1(0 I=1 L=0 Map1={3:3} Bean2=Bean2(I=2) Map2={4:Bean1(4 I=5 L=0 Map1={} Bean2=Bean2(I=0) Map2={})})\n" +
322 "Log=[]\n" +
323 "AllLog=[{0:Value=Bean1(0 I=1 L=0 Map1={3:3} Bean2=Bean2(I=2) Map2={4:Bean1(4 I=5 L=0 Map1={} Bean2=Bean2(I=0) Map2={})})},{1:Value=1,3: Putted:{3:3} Removed:[],4:{1:Value=2},5: Putted:{4:Bean1(4 I=5 L=0 Map1={} Bean2=Bean2(I=0) Map2={})} Removed:[] Changed:[{1:Value=5}]}]}");
324 return 0L;
325 }).call();
326 }
327
328 private static void edit(Rocks rocks, Table<Integer, Bean1> table) throws Exception {
329 rocks.newProcedure(() -> {

Callers 1

runLeaderMethod · 0.95

Calls 4

updateMethod · 0.95
verifyChangesMethod · 0.95
callMethod · 0.65
newProcedureMethod · 0.45

Tested by

no test coverage detected