Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KentBeck/BPlusTree3
/ functions
Functions
1,100 in github.com/KentBeck/BPlusTree3
⨍
Functions
1,100
◇
Types & classes
69
↓ 391 callers
Method
insert
Insert a key-value pair and handle splitting if necessary.
rust/src/node.rs:307
↓ 155 callers
Method
remove
(&mut self, key: &K)
rust/src/node.rs:401
↓ 120 callers
Method
range
Returns an iterator over key-value pairs in a range using Rust's range syntax. # Examples ``` use bplustree::BPlusTreeMap; let mut tree = BPlusTree
rust/src/range_queries.rs:49
↓ 78 callers
Method
len
(&self)
rust/src/node.rs:35
↓ 68 callers
Method
items
Returns an iterator over all key-value pairs in sorted order.
rust/src/iteration.rs:57
↓ 50 callers
Method
get
(&self, key: &K)
rust/src/node.rs:20
↓ 48 callers
Function
create_tree_4
Standard tree with capacity 4 (most common pattern)
rust/tests/test_utils.rs:12
↓ 47 callers
Method
items
Return an iterator over (key, value) pairs in the given range
python/bplustree/bplus_tree.py:459
↓ 40 callers
Method
keys
Return an iterator over keys in the given range
python/bplustree/bplus_tree.py:449
↓ 36 callers
Method
items_range
Returns an iterator over key-value pairs in a range. If start_key is None, starts from the beginning. If end_key is None, goes to the end.
rust/src/iteration.rs:84
↓ 34 callers
Function
check_invariants
Helper function to check tree invariants
python/tests/test_bplus_tree.py:10
↓ 33 callers
Method
clone
(&self)
rust/src/types.rs:130
↓ 31 callers
Method
is_leaf
(self)
python/tests/test_optimized_bplus_tree.py:29
↓ 26 callers
Method
insert
Insert a key-value pair. Returns old value if key exists.
python/bplustree/bplus_tree.py:746
↓ 25 callers
Function
assert_invariants
Standard invariant check with panic on failure
rust/tests/test_utils.rs:170
↓ 25 callers
Method
get_branch
(&self, id: NodeId)
rust/src/get_operations.rs:256
↓ 25 callers
Method
leaf_count
Returns the number of leaf nodes in the tree.
rust/src/tree_structure.rs:47
↓ 23 callers
Method
leaf_arena_stats
Get statistics for the leaf node arena.
rust/src/compact_arena.rs:408
↓ 22 callers
Function
create_tree_4_with_data
Create tree with capacity 4 and insert 0..count sequential data
rust/tests/test_utils.rs:131
↓ 21 callers
Function
check_invariants
Helper function to check tree invariants
python/tests/test_stress_edge_cases.py:13
↓ 21 callers
Function
insert_sequential_range
Insert sequential data 0..count with string values
rust/tests/test_utils.rs:49
↓ 20 callers
Method
check_invariants_detailed
Check invariants with detailed error reporting.
rust/src/validation.rs:21
↓ 20 callers
Method
range
Return an iterator over (key, value) pairs in the specified range. Args: start_key: Start of range (inclusive). Use None for begi
python/bplustree/bplus_tree.py:496
↓ 19 callers
Method
contains_key
Check if key exists in the tree. # Arguments `key` - The key to check for existence # Returns `true` if the key exists, `false` otherwise. # Exam
rust/src/get_operations.rs:62
↓ 19 callers
Function
deletion_range_attack
Execute deletion range attack (delete items from start to end)
rust/tests/test_utils.rs:200
↓ 19 callers
Method
get
Optimized lookup.
python/tests/test_optimized_bplus_tree.py:116
↓ 19 callers
Function
node_get_key
Inline functions for fast array access */
python/bplustree_c_src/bplustree.h:78
↓ 18 callers
Method
get_branch_mut
(&mut self, id: NodeId)
rust/src/get_operations.rs:262
↓ 18 callers
Method
get_leaf
(&self, id: NodeId)
rust/src/get_operations.rs:233
↓ 18 callers
Method
items
Iterate over key-value pairs in range.
python/tests/test_optimized_bplus_tree.py:269
↓ 18 callers
Method
pop
Remove and return value for key with optional default (dict-like API). Args: key: The key to remove. *args: Optional
python/bplustree/bplus_tree.py:522
↓ 18 callers
Method
update
Update tree with key-value pairs from other mapping or iterable.
python/bplustree/__init__.py:85
↓ 17 callers
Method
insert
Insert with optimized array access.
python/tests/test_optimized_bplus_tree.py:40
↓ 17 callers
Method
is_empty
Returns true if this leaf node is empty.
rust/src/node.rs:418
↓ 17 callers
Method
print_node_chain
Prints the node chain for debugging.
rust/src/validation.rs:300
↓ 16 callers
Function
create_tree_capacity_int
Generic integer tree creation with custom capacity
rust/tests/test_utils.rs:37
↓ 16 callers
Method
get_leaf_mut
(&mut self, id: NodeId)
rust/src/get_operations.rs:239
↓ 15 callers
Method
branch_arena_stats
Get statistics for the branch node arena.
rust/src/compact_arena.rs:413
↓ 14 callers
Function
check_invariants
Helper function to check tree invariants
python/tests/test_fuzz_discovered_patterns.py:19
↓ 14 callers
Method
leaf_sizes
Returns the sizes of all leaf nodes (for testing/debugging).
rust/src/validation.rs:293
↓ 14 callers
Function
node_set_key
python/bplustree_c_src/bplustree.h:90
↓ 14 callers
Function
run_benchmark
(_name: &str, iterations: usize, mut f: F)
rust/examples/comprehensive_comparison.rs:70
↓ 13 callers
Method
allocate
(&mut self, item: T)
rust/src/compact_arena.rs:57
↓ 13 callers
Function
benchmark_function
Benchmark a function and return execution time.
python/examples/performance_demo.py:32
↓ 13 callers
Method
remove
Remove a key from the tree and return its associated value. # Arguments `key` - The key to remove from the tree # Returns `Some(value)` - The value
rust/src/delete_operations.rs:44
↓ 13 callers
Function
time_it
Context manager to measure execution time.
python/tests/test_performance_regression.py:19
↓ 13 callers
Method
validate
Alias for check_invariants_detailed (for test compatibility).
rust/src/validation.rs:283
↓ 12 callers
Method
contains
Check if an ID is valid and allocated
rust/src/compact_arena.rs:174
↓ 12 callers
Method
find_position
Find where a key should be inserted. Returns (position, exists) where exists is True if key already exists.
python/bplustree/bplus_tree.py:736
↓ 12 callers
Method
len
Get the number of allocated items
rust/src/compact_arena.rs:245
↓ 11 callers
Method
clear
Remove all items from the tree.
python/bplustree/__init__.py:41
↓ 11 callers
Method
copy
Create a shallow copy of the tree.
python/bplustree/__init__.py:100
↓ 11 callers
Method
count_nodes_in_tree
Count the number of leaf and branch nodes actually in the tree structure.
rust/src/tree_structure.rs:81
↓ 11 callers
Function
insert_with_multiplier
Insert data with custom key multiplier (common pattern: i * multiplier)
rust/tests/test_utils.rs:63
↓ 11 callers
Method
keys
Get a reference to the keys in this leaf node.
rust/src/node.rs:40
↓ 11 callers
Method
leaf_count
Return the number of leaf nodes
python/bplustree/bplus_tree.py:617
↓ 11 callers
Function
node_get_child
python/bplustree_c_src/bplustree.h:86
↓ 11 callers
Method
pop
Remove and return value for key with optional default.
python/bplustree/__init__.py:51
↓ 10 callers
Method
allocate_leaf
(&mut self, leaf: LeafNode<K, V>)
rust/src/compact_arena.rs:332
↓ 10 callers
Method
can_donate
Check if leaf can give a key to a sibling (has more than minimum).
python/bplustree/bplus_tree.py:702
↓ 10 callers
Method
clear
Clear all items from the arena
rust/src/compact_arena.rs:263
↓ 10 callers
Method
find_child_index
Find which child a key should go to
python/bplustree/bplus_tree.py:901
↓ 10 callers
Method
is_leaf
Returns True if this is a leaf node
python/bplustree/bplus_tree.py:649
↓ 10 callers
Method
min_keys
(&self)
rust/src/node.rs:451
↓ 10 callers
Method
next
(&mut self)
rust/src/iteration.rs:227
↓ 10 callers
Function
node_get_value
python/bplustree_c_src/bplustree.h:82
↓ 9 callers
Method
allocated_leaf_count
Get the number of allocated leaf nodes in the arena.
rust/src/compact_arena.rs:383
↓ 9 callers
Method
get
Get value for a key, returns None if not found
python/bplustree/bplus_tree.py:763
↓ 9 callers
Function
node_set_value
python/bplustree_c_src/bplustree.h:94
↓ 8 callers
Function
create_tree_capacity
Generic tree creation with custom capacity
rust/tests/test_utils.rs:32
↓ 8 callers
Method
get
Get value with default.
python/bplustree/__init__.py:29
↓ 8 callers
Method
get
Get a reference to the value associated with a key. # Arguments `key` - The key to look up # Returns A reference to the value if the key exists, `
rust/src/get_operations.rs:34
↓ 8 callers
Method
get_item
Get value for a key, returning an error if the key doesn't exist. This is equivalent to Python's `tree[key]`. # Arguments `key` - The key to look up
rust/src/get_operations.rs:112
↓ 8 callers
Method
insert
Insert key-value pair. Returns True if successful.
python/tests/test_single_array_int_optimization.py:38
↓ 8 callers
Method
split
Split this leaf node, returning the new right node.
rust/src/node.rs:359
↓ 7 callers
Method
check_invariants
Check all B+ tree invariants. Args: root: The root node of the tree leaves: Optional head of the leaf linked
python/tests/_invariant_checker.py:35
↓ 7 callers
Method
find_child_index
(&self, key: &K)
rust/src/node.rs:621
↓ 7 callers
Method
generate_test_data
Generate test data for performance tests.
python/tests/test_performance_regression.py:35
↓ 7 callers
Method
get_many
Get multiple keys with detailed error reporting. # Arguments `keys` - Slice of keys to look up # Returns A vector of references to the values if a
rust/src/get_operations.rs:194
↓ 7 callers
Method
keys_len
(&self)
rust/src/node.rs:92
↓ 7 callers
Function
node_set_child
python/bplustree_c_src/bplustree.h:98
↓ 7 callers
Method
run_fuzz_test
Run the main fuzz test with specified number of operations
python/tests/fuzz_test.py:318
↓ 7 callers
Method
setdefault
Get value for key, setting and returning default if not present.
python/bplustree/__init__.py:77
↓ 7 callers
Method
with_context
(self, context: &str)
rust/src/error.rs:124
↓ 6 callers
Method
binary_search_keys
(&self, key: &K)
rust/src/node.rs:243
↓ 6 callers
Method
check_invariants
Check if the tree maintains B+ tree invariants. Returns true if all invariants are satisfied.
rust/src/validation.rs:16
↓ 6 callers
Function
create_attack_tree
Legacy compatibility - create attack tree
rust/tests/test_utils.rs:466
↓ 6 callers
Function
create_test_data
Create test data for benchmarks.
python/examples/performance_demo.py:40
↓ 6 callers
Method
get_unchecked
Unsafe fast access without bounds checking or allocation verification # Safety Caller must ensure id is valid and allocated
rust/src/compact_arena.rs:159
↓ 6 callers
Method
insert_at_index
Insert a key-value pair at the specified index.
rust/src/node.rs:353
↓ 6 callers
Method
log_operation
Log an operation for replay in case of errors
python/tests/fuzz_test.py:66
↓ 6 callers
Method
measure_operation
Measure operation time and return per-operation time in nanoseconds.
python/tests/test_performance_vs_sorteddict.py:37
↓ 6 callers
Function
node_find_position
Binary search to find position for key */
python/bplustree_c_src/node_ops.c:68
↓ 6 callers
Method
pop
Pop the last key-value pair.
rust/src/node.rs:283
↓ 6 callers
Method
popitem
Remove and return an arbitrary (key, value) pair.
python/bplustree/__init__.py:66
↓ 6 callers
Method
time_operation
Time an operation and store the result.
python/benchmarks/performance_benchmark.py:31
↓ 5 callers
Function
check_invariants
Helper function to check tree invariants
python/tests/test_max_occupancy_bug.py:8
↓ 5 callers
Function
check_invariants
Helper function to check tree invariants
python/tests/test_proper_deletion.py:10
↓ 5 callers
Method
deallocate_leaf
(&mut self, id: NodeId)
rust/src/compact_arena.rs:363
↓ 5 callers
Function
fast_compare_eq
Fast equality comparison function */
python/bplustree_c_src/node_ops.c:43
next →
1–100 of 1,100, ranked by callers