pub struct MetaEntry { /* private fields */ }Implementations§
Source§impl MetaEntry
impl MetaEntry
pub fn sequence_number(&self) -> u32
pub fn size(&self) -> u64
pub fn flags(&self) -> MetaEntryFlags
pub fn amqf_size(&self) -> u32
pub fn raw_amqf<'l>(&self, amqf_data: &'l [u8]) -> &'l [u8] ⓘ
pub fn deserialize_amqf(&self, meta: &MetaFile) -> Result<Filter>
pub fn amqf(&self, meta: &MetaFile) -> Result<impl Deref<Target = Filter>>
pub fn sst(&self, meta: &MetaFile) -> Result<&StaticSortedFile>
Sourcepub fn range(&self) -> StaticSortedFileRange
pub fn range(&self) -> StaticSortedFileRange
Returns the key family and hash range of this file.
pub fn min_hash(&self) -> u64
pub fn max_hash(&self) -> u64
pub fn block_count(&self) -> u16
Sourcepub fn sst_metadata(&self) -> StaticSortedFileMetaData
pub fn sst_metadata(&self) -> StaticSortedFileMetaData
Returns the SST metadata needed to open the file independently. Used during compaction to avoid caching mmaps on the MetaEntry.
Auto Trait Implementations§
impl !Freeze for MetaEntry
impl RefUnwindSafe for MetaEntry
impl Send for MetaEntry
impl Sync for MetaEntry
impl Unpin for MetaEntry
impl UnsafeUnpin for MetaEntry
impl UnwindSafe for MetaEntry
Blanket Implementations§
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more