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

Class ItemIterator

rust/src/iteration.rs:14–22  ·  view source on GitHub ↗

Iterator over key-value pairs in the B+ tree using the leaf linked list.

Source from the content-addressed store, hash-verified

12
13/// Iterator over key-value pairs in the B+ tree using the leaf linked list.
14pub struct ItemIterator<'a, K, V> {
15 tree: &'a BPlusTreeMap<K, V>,
16 current_leaf_id: Option<NodeId>,
17 pub current_leaf_ref: Option<&'a LeafNode<K, V>>, // CACHED leaf reference
18 current_leaf_index: usize,
19 end_key: Option<&'a K>,
20 end_bound_key: Option<K>,
21 end_inclusive: bool,
22}
23
24/// Fast iterator over key-value pairs using unsafe arena access for better performance.
25pub struct FastItemIterator<'a, K, V> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected