MCPcopy Create free account
hub / github.com/KentBeck/BPlusTree3 / FastItemIterator

Class FastItemIterator

rust/src/iteration.rs:25–31  ·  view source on GitHub ↗

Fast iterator over key-value pairs using unsafe arena access for better performance.

Source from the content-addressed store, hash-verified

23
24/// Fast iterator over key-value pairs using unsafe arena access for better performance.
25pub struct FastItemIterator<'a, K, V> {
26 tree: &'a BPlusTreeMap<K, V>,
27 current_leaf_id: Option<NodeId>,
28 pub current_leaf_ref: Option<&'a LeafNode<K, V>>, // CACHED leaf reference
29 current_leaf_index: usize,
30 finished: bool,
31}
32
33/// Iterator over keys in the B+ tree.
34pub struct KeyIterator<'a, K, V> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected