feat(c_interface): Add object iteration and info functions#70
Open
pzittlau wants to merge 1 commit intoparcio:mainfrom
Open
feat(c_interface): Add object iteration and info functions#70pzittlau wants to merge 1 commit intoparcio:mainfrom
pzittlau wants to merge 1 commit intoparcio:mainfrom
Conversation
This commit introduces new C interface functions for iterating over objects and retrieving object information within the betree object store. - Adds `obj_iter_t` as an opaque struct for object iterators. - Implements `betree_free_obj_iter` to free the object iterator. - Provides `betree_object_iter_all` to create an iterator over all objects. - Adds `betree_object_iter_next` to advance the iterator and retrieve the next object's key. - Includes `betree_object_store_list_prefix` for iterating over objects with a specific prefix. - Adds `betree_object_info_t` struct for object status information. - Implements `betree_object_info` to retrieve object size and modification time. - Adds `betree_free_object_info` to free the object info struct. - Removes commented-out `betree_object_status` and `betree_object_mtime_us` functions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces new C interface functions for iterating over objects and retrieving object information within the betree object store.
obj_iter_tas an opaque struct for object iterators.betree_free_obj_iterto free the object iterator.betree_object_iter_allto create an iterator over all objects.betree_object_iter_nextto advance the iterator and retrieve the next object's key.betree_object_store_list_prefixfor iterating over objects with a specific prefix.betree_object_info_tstruct for object status information.betree_object_infoto retrieve object size and modification time.betree_free_object_infoto free the object info struct.betree_object_statusandbetree_object_mtime_usfunctions.