Struct solana_bucket_map::bucket_api::BucketApi
source · Fields§
§stats: Arc<BucketMapStats>
Implementations§
source§impl<T: Clone + Copy> BucketApi<T>
impl<T: Clone + Copy> BucketApi<T>
pub fn new(
drives: Arc<Vec<PathBuf>>,
max_search: MaxSearch,
stats: Arc<BucketMapStats>
) -> Self
sourcepub fn items_in_range<R>(&self, range: &Option<&R>) -> Vec<BucketItem<T>> ⓘwhere
R: RangeBounds<Pubkey>,
pub fn items_in_range<R>(&self, range: &Option<&R>) -> Vec<BucketItem<T>> ⓘwhere
R: RangeBounds<Pubkey>,
Get the items for bucket
sourcepub fn read_value(&self, key: &Pubkey) -> Option<(Vec<T>, RefCount)>
pub fn read_value(&self, key: &Pubkey) -> Option<(Vec<T>, RefCount)>
Get the values for Pubkey key