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

Method walkKey

ZezeJava/ZezeJava/src/main/java/Zeze/Raft/RocksRaft/Table.java:282–291  ·  view source on GitHub ↗
(Func1<K, Boolean> callback)

Source from the content-addressed store, hash-verified

280 }
281
282 public boolean walkKey(Func1<K, Boolean> callback) throws Exception {
283 try (var it = rocksTable.iterator()) {
284 for (it.seekToFirst(); it.isValid(); it.next()) {
285 var key = keyDecodeFunc.apply(ByteBuffer.Wrap(it.key()));
286 if (!callback.call(key))
287 return false;
288 }
289 return true;
290 }
291 }
292
293 public Record<K> followerApply(K key, Changes.Record rLog) {
294 Record<K> r;

Callers

nothing calls this directly

Calls 7

WrapMethod · 0.95
isValidMethod · 0.80
nextMethod · 0.65
applyMethod · 0.65
keyMethod · 0.65
callMethod · 0.65
iteratorMethod · 0.45

Tested by

no test coverage detected