feat(lsm): implement a simple trie remove

This commit is contained in:
Jef Roosens 2023-10-14 15:57:33 +02:00
parent 682f422e3c
commit 6938c29725
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
5 changed files with 147 additions and 34 deletions

View file

@ -20,6 +20,16 @@ lsm_error lsm_bt_init(lsm_bt **ptr);
*/
void lsm_bt_free(lsm_bt *bt);
/**
* Remove the binary tree's entire contents, but keep the struct allocated.
*/
void lsm_bt_clear(lsm_bt *bt);
/**
* Return the size of the binary tree
*/
uint64_t lsm_bt_size(lsm_bt *bt);
/**
* Search for the data stored behind the given key.
*