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

Function tree_get

python/bplustree_c_src/tree_ops.c:128–132  ·  view source on GitHub ↗

Get value for key */

Source from the content-addressed store, hash-verified

126
127/* Get value for key */
128PyObject* tree_get(BPlusTree *tree, PyObject *key) {
129 BPlusNode *leaf = tree_find_leaf(tree, key);
130 if (!leaf) return NULL;
131 return node_get(leaf, key);
132}
133
134/* Insert into branch node */
135int node_insert_branch(BPlusNode *node, PyObject *key, BPlusNode *right_child,

Callers 2

BPlusTree_getitemFunction · 0.85
BPlusTree_containsFunction · 0.85

Calls 2

tree_find_leafFunction · 0.85
node_getFunction · 0.85

Tested by

no test coverage detected