MCPcopy Create free account

hub / github.com/KentBeck/BPlusTree3 / functions

Functions1,100 in github.com/KentBeck/BPlusTree3

↓ 391 callersMethodinsert
Insert a key-value pair and handle splitting if necessary.
rust/src/node.rs:307
↓ 155 callersMethodremove
(&mut self, key: &K)
rust/src/node.rs:401
↓ 120 callersMethodrange
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 callersMethodlen
(&self)
rust/src/node.rs:35
↓ 68 callersMethoditems
Returns an iterator over all key-value pairs in sorted order.
rust/src/iteration.rs:57
↓ 50 callersMethodget
(&self, key: &K)
rust/src/node.rs:20
↓ 48 callersFunctioncreate_tree_4
Standard tree with capacity 4 (most common pattern)
rust/tests/test_utils.rs:12
↓ 47 callersMethoditems
Return an iterator over (key, value) pairs in the given range
python/bplustree/bplus_tree.py:459
↓ 40 callersMethodkeys
Return an iterator over keys in the given range
python/bplustree/bplus_tree.py:449
↓ 36 callersMethoditems_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 callersFunctioncheck_invariants
Helper function to check tree invariants
python/tests/test_bplus_tree.py:10
↓ 33 callersMethodclone
(&self)
rust/src/types.rs:130
↓ 31 callersMethodis_leaf
(self)
python/tests/test_optimized_bplus_tree.py:29
↓ 26 callersMethodinsert
Insert a key-value pair. Returns old value if key exists.
python/bplustree/bplus_tree.py:746
↓ 25 callersFunctionassert_invariants
Standard invariant check with panic on failure
rust/tests/test_utils.rs:170
↓ 25 callersMethodget_branch
(&self, id: NodeId)
rust/src/get_operations.rs:256
↓ 25 callersMethodleaf_count
Returns the number of leaf nodes in the tree.
rust/src/tree_structure.rs:47
↓ 23 callersMethodleaf_arena_stats
Get statistics for the leaf node arena.
rust/src/compact_arena.rs:408
↓ 22 callersFunctioncreate_tree_4_with_data
Create tree with capacity 4 and insert 0..count sequential data
rust/tests/test_utils.rs:131
↓ 21 callersFunctioncheck_invariants
Helper function to check tree invariants
python/tests/test_stress_edge_cases.py:13
↓ 21 callersFunctioninsert_sequential_range
Insert sequential data 0..count with string values
rust/tests/test_utils.rs:49
↓ 20 callersMethodcheck_invariants_detailed
Check invariants with detailed error reporting.
rust/src/validation.rs:21
↓ 20 callersMethodrange
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 callersMethodcontains_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 callersFunctiondeletion_range_attack
Execute deletion range attack (delete items from start to end)
rust/tests/test_utils.rs:200
↓ 19 callersMethodget
Optimized lookup.
python/tests/test_optimized_bplus_tree.py:116
↓ 19 callersFunctionnode_get_key
Inline functions for fast array access */
python/bplustree_c_src/bplustree.h:78
↓ 18 callersMethodget_branch_mut
(&mut self, id: NodeId)
rust/src/get_operations.rs:262
↓ 18 callersMethodget_leaf
(&self, id: NodeId)
rust/src/get_operations.rs:233
↓ 18 callersMethoditems
Iterate over key-value pairs in range.
python/tests/test_optimized_bplus_tree.py:269
↓ 18 callersMethodpop
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 callersMethodupdate
Update tree with key-value pairs from other mapping or iterable.
python/bplustree/__init__.py:85
↓ 17 callersMethodinsert
Insert with optimized array access.
python/tests/test_optimized_bplus_tree.py:40
↓ 17 callersMethodis_empty
Returns true if this leaf node is empty.
rust/src/node.rs:418
↓ 17 callersMethodprint_node_chain
Prints the node chain for debugging.
rust/src/validation.rs:300
↓ 16 callersFunctioncreate_tree_capacity_int
Generic integer tree creation with custom capacity
rust/tests/test_utils.rs:37
↓ 16 callersMethodget_leaf_mut
(&mut self, id: NodeId)
rust/src/get_operations.rs:239
↓ 15 callersMethodbranch_arena_stats
Get statistics for the branch node arena.
rust/src/compact_arena.rs:413
↓ 14 callersFunctioncheck_invariants
Helper function to check tree invariants
python/tests/test_fuzz_discovered_patterns.py:19
↓ 14 callersMethodleaf_sizes
Returns the sizes of all leaf nodes (for testing/debugging).
rust/src/validation.rs:293
↓ 14 callersFunctionnode_set_key
python/bplustree_c_src/bplustree.h:90
↓ 14 callersFunctionrun_benchmark
(_name: &str, iterations: usize, mut f: F)
rust/examples/comprehensive_comparison.rs:70
↓ 13 callersMethodallocate
(&mut self, item: T)
rust/src/compact_arena.rs:57
↓ 13 callersFunctionbenchmark_function
Benchmark a function and return execution time.
python/examples/performance_demo.py:32
↓ 13 callersMethodremove
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 callersFunctiontime_it
Context manager to measure execution time.
python/tests/test_performance_regression.py:19
↓ 13 callersMethodvalidate
Alias for check_invariants_detailed (for test compatibility).
rust/src/validation.rs:283
↓ 12 callersMethodcontains
Check if an ID is valid and allocated
rust/src/compact_arena.rs:174
↓ 12 callersMethodfind_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 callersMethodlen
Get the number of allocated items
rust/src/compact_arena.rs:245
↓ 11 callersMethodclear
Remove all items from the tree.
python/bplustree/__init__.py:41
↓ 11 callersMethodcopy
Create a shallow copy of the tree.
python/bplustree/__init__.py:100
↓ 11 callersMethodcount_nodes_in_tree
Count the number of leaf and branch nodes actually in the tree structure.
rust/src/tree_structure.rs:81
↓ 11 callersFunctioninsert_with_multiplier
Insert data with custom key multiplier (common pattern: i * multiplier)
rust/tests/test_utils.rs:63
↓ 11 callersMethodkeys
Get a reference to the keys in this leaf node.
rust/src/node.rs:40
↓ 11 callersMethodleaf_count
Return the number of leaf nodes
python/bplustree/bplus_tree.py:617
↓ 11 callersFunctionnode_get_child
python/bplustree_c_src/bplustree.h:86
↓ 11 callersMethodpop
Remove and return value for key with optional default.
python/bplustree/__init__.py:51
↓ 10 callersMethodallocate_leaf
(&mut self, leaf: LeafNode<K, V>)
rust/src/compact_arena.rs:332
↓ 10 callersMethodcan_donate
Check if leaf can give a key to a sibling (has more than minimum).
python/bplustree/bplus_tree.py:702
↓ 10 callersMethodclear
Clear all items from the arena
rust/src/compact_arena.rs:263
↓ 10 callersMethodfind_child_index
Find which child a key should go to
python/bplustree/bplus_tree.py:901
↓ 10 callersMethodis_leaf
Returns True if this is a leaf node
python/bplustree/bplus_tree.py:649
↓ 10 callersMethodmin_keys
(&self)
rust/src/node.rs:451
↓ 10 callersMethodnext
(&mut self)
rust/src/iteration.rs:227
↓ 10 callersFunctionnode_get_value
python/bplustree_c_src/bplustree.h:82
↓ 9 callersMethodallocated_leaf_count
Get the number of allocated leaf nodes in the arena.
rust/src/compact_arena.rs:383
↓ 9 callersMethodget
Get value for a key, returns None if not found
python/bplustree/bplus_tree.py:763
↓ 9 callersFunctionnode_set_value
python/bplustree_c_src/bplustree.h:94
↓ 8 callersFunctioncreate_tree_capacity
Generic tree creation with custom capacity
rust/tests/test_utils.rs:32
↓ 8 callersMethodget
Get value with default.
python/bplustree/__init__.py:29
↓ 8 callersMethodget
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 callersMethodget_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 callersMethodinsert
Insert key-value pair. Returns True if successful.
python/tests/test_single_array_int_optimization.py:38
↓ 8 callersMethodsplit
Split this leaf node, returning the new right node.
rust/src/node.rs:359
↓ 7 callersMethodcheck_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 callersMethodfind_child_index
(&self, key: &K)
rust/src/node.rs:621
↓ 7 callersMethodgenerate_test_data
Generate test data for performance tests.
python/tests/test_performance_regression.py:35
↓ 7 callersMethodget_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 callersMethodkeys_len
(&self)
rust/src/node.rs:92
↓ 7 callersFunctionnode_set_child
python/bplustree_c_src/bplustree.h:98
↓ 7 callersMethodrun_fuzz_test
Run the main fuzz test with specified number of operations
python/tests/fuzz_test.py:318
↓ 7 callersMethodsetdefault
Get value for key, setting and returning default if not present.
python/bplustree/__init__.py:77
↓ 7 callersMethodwith_context
(self, context: &str)
rust/src/error.rs:124
↓ 6 callersMethodbinary_search_keys
(&self, key: &K)
rust/src/node.rs:243
↓ 6 callersMethodcheck_invariants
Check if the tree maintains B+ tree invariants. Returns true if all invariants are satisfied.
rust/src/validation.rs:16
↓ 6 callersFunctioncreate_attack_tree
Legacy compatibility - create attack tree
rust/tests/test_utils.rs:466
↓ 6 callersFunctioncreate_test_data
Create test data for benchmarks.
python/examples/performance_demo.py:40
↓ 6 callersMethodget_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 callersMethodinsert_at_index
Insert a key-value pair at the specified index.
rust/src/node.rs:353
↓ 6 callersMethodlog_operation
Log an operation for replay in case of errors
python/tests/fuzz_test.py:66
↓ 6 callersMethodmeasure_operation
Measure operation time and return per-operation time in nanoseconds.
python/tests/test_performance_vs_sorteddict.py:37
↓ 6 callersFunctionnode_find_position
Binary search to find position for key */
python/bplustree_c_src/node_ops.c:68
↓ 6 callersMethodpop
Pop the last key-value pair.
rust/src/node.rs:283
↓ 6 callersMethodpopitem
Remove and return an arbitrary (key, value) pair.
python/bplustree/__init__.py:66
↓ 6 callersMethodtime_operation
Time an operation and store the result.
python/benchmarks/performance_benchmark.py:31
↓ 5 callersFunctioncheck_invariants
Helper function to check tree invariants
python/tests/test_max_occupancy_bug.py:8
↓ 5 callersFunctioncheck_invariants
Helper function to check tree invariants
python/tests/test_proper_deletion.py:10
↓ 5 callersMethoddeallocate_leaf
(&mut self, id: NodeId)
rust/src/compact_arena.rs:363
↓ 5 callersFunctionfast_compare_eq
Fast equality comparison function */
python/bplustree_c_src/node_ops.c:43
next →1–100 of 1,100, ranked by callers