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

Method main4

ZezeJava/ZezeJavaTest/src/Benchmark/BenchRocksDb.java:172–187  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

170 }
171
172 public static void main4(String[] args) throws Exception {
173 System.out.println("begin");
174 RocksDB.loadLibrary();
175 var wb = new WriteBatch();
176 wb.put("ABC".getBytes(), "1234".getBytes());
177 wb.delete("ABC".getBytes());
178 System.out.println(wb.getDataSize());
179 var d = wb.data();
180 System.out.println(BitConverter.toString(d));
181
182 wb = new WriteBatch(d);
183 System.out.println(wb.getDataSize());
184 d = wb.data();
185 System.out.println(BitConverter.toString(d));
186 System.out.println("end");
187 }
188}

Callers

nothing calls this directly

Calls 4

toStringMethod · 0.95
putMethod · 0.65
getBytesMethod · 0.65
deleteMethod · 0.45

Tested by

no test coverage detected