pub struct PartitionsParser<R: Read + Seek> { /* private fields */ }Expand description
Parser for Partitions.db BTI index
Implementations§
Source§impl<R: Read + Seek> PartitionsParser<R>
impl<R: Read + Seek> PartitionsParser<R>
Sourcepub fn lookup_partition(
&mut self,
partition_key: &[Value],
) -> BtiResult<Option<PayloadRef>>
pub fn lookup_partition( &mut self, partition_key: &[Value], ) -> BtiResult<Option<PayloadRef>>
Lookup partition by key
Sourcepub fn iterate_partitions(&mut self) -> BtiResult<PartitionIterator<'_, R>>
pub fn iterate_partitions(&mut self) -> BtiResult<PartitionIterator<'_, R>>
Iterator over all partitions in the index
Sourcepub fn get_stats(&self) -> BtiIndexStats
pub fn get_stats(&self) -> BtiIndexStats
Get statistics about the index
Auto Trait Implementations§
impl<R> Freeze for PartitionsParser<R>where
R: Freeze,
impl<R> RefUnwindSafe for PartitionsParser<R>where
R: RefUnwindSafe,
impl<R> Send for PartitionsParser<R>where
R: Send,
impl<R> Sync for PartitionsParser<R>where
R: Sync,
impl<R> Unpin for PartitionsParser<R>where
R: Unpin,
impl<R> UnsafeUnpin for PartitionsParser<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for PartitionsParser<R>where
R: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more