pub struct ByIdStats<EmbeddedStats> {
pub alive_keys: u64,
pub deleted_keys: u64,
pub total_indexed_bytes: u64,
pub embedded: EmbeddedStats,
}
Expand description
The reduced index of both VersionedByIdIndex
and UnversionedByIdIndex
Fields
alive_keys: u64
The number of keys that have values stored within them.
deleted_keys: u64
The number of keys that no longer have values stored within them.
total_indexed_bytes: u64
The total number of bytes stored on disk associated with currently-alive values.
embedded: EmbeddedStats
The embedded statistics.
Implementations
sourceimpl<EmbeddedStats> ByIdStats<EmbeddedStats>
impl<EmbeddedStats> ByIdStats<EmbeddedStats>
sourcepub const fn total_keys(&self) -> u64
pub const fn total_keys(&self) -> u64
Returns the total number of keys regardless of whether data is stored within them.
Trait Implementations
sourceimpl<EmbeddedIndexer, EmbeddedIndex, EmbeddedStats> Reducer<UnversionedByIdIndex<EmbeddedIndex>, ByIdStats<EmbeddedStats>> for ByIdIndexer<EmbeddedIndexer> where
EmbeddedIndexer: Reducer<EmbeddedIndex, EmbeddedStats>,
EmbeddedIndex: EmbeddedIndex<Indexer = EmbeddedIndexer, Reduced = EmbeddedStats>,
impl<EmbeddedIndexer, EmbeddedIndex, EmbeddedStats> Reducer<UnversionedByIdIndex<EmbeddedIndex>, ByIdStats<EmbeddedStats>> for ByIdIndexer<EmbeddedIndexer> where
EmbeddedIndexer: Reducer<EmbeddedIndex, EmbeddedStats>,
EmbeddedIndex: EmbeddedIndex<Indexer = EmbeddedIndexer, Reduced = EmbeddedStats>,
sourcefn reduce<'a, Indexes, IndexesIter>(
&self,
indexes: Indexes
) -> ByIdStats<EmbeddedStats> where
EmbeddedIndex: 'a,
Indexes: IntoIterator<Item = &'a UnversionedByIdIndex<EmbeddedIndex>, IntoIter = IndexesIter> + ExactSizeIterator,
IndexesIter: Iterator<Item = &'a UnversionedByIdIndex<EmbeddedIndex>> + ExactSizeIterator + Clone,
fn reduce<'a, Indexes, IndexesIter>(
&self,
indexes: Indexes
) -> ByIdStats<EmbeddedStats> where
EmbeddedIndex: 'a,
Indexes: IntoIterator<Item = &'a UnversionedByIdIndex<EmbeddedIndex>, IntoIter = IndexesIter> + ExactSizeIterator,
IndexesIter: Iterator<Item = &'a UnversionedByIdIndex<EmbeddedIndex>> + ExactSizeIterator + Clone,
Reduces one or more indexes into a single reduced index.
sourcefn rereduce<'a, ReducedIndexes, ReducedIndexesIter>(
&self,
values: ReducedIndexes
) -> ByIdStats<EmbeddedStats> where
Self: 'a,
EmbeddedStats: 'a,
ReducedIndexes: IntoIterator<Item = &'a ByIdStats<EmbeddedStats>, IntoIter = ReducedIndexesIter> + ExactSizeIterator,
ReducedIndexesIter: Iterator<Item = &'a ByIdStats<EmbeddedStats>> + ExactSizeIterator + Clone,
fn rereduce<'a, ReducedIndexes, ReducedIndexesIter>(
&self,
values: ReducedIndexes
) -> ByIdStats<EmbeddedStats> where
Self: 'a,
EmbeddedStats: 'a,
ReducedIndexes: IntoIterator<Item = &'a ByIdStats<EmbeddedStats>, IntoIter = ReducedIndexesIter> + ExactSizeIterator,
ReducedIndexesIter: Iterator<Item = &'a ByIdStats<EmbeddedStats>> + ExactSizeIterator + Clone,
Reduces one or more previously-reduced indexes into a single reduced index.
sourceimpl<EmbeddedIndexer, EmbeddedIndex, EmbeddedStats> Reducer<VersionedByIdIndex<EmbeddedIndex>, ByIdStats<EmbeddedStats>> for ByIdIndexer<EmbeddedIndexer> where
EmbeddedIndexer: Reducer<EmbeddedIndex, EmbeddedStats>,
EmbeddedIndex: EmbeddedIndex<Indexer = EmbeddedIndexer, Reduced = EmbeddedStats>,
impl<EmbeddedIndexer, EmbeddedIndex, EmbeddedStats> Reducer<VersionedByIdIndex<EmbeddedIndex>, ByIdStats<EmbeddedStats>> for ByIdIndexer<EmbeddedIndexer> where
EmbeddedIndexer: Reducer<EmbeddedIndex, EmbeddedStats>,
EmbeddedIndex: EmbeddedIndex<Indexer = EmbeddedIndexer, Reduced = EmbeddedStats>,
sourcefn reduce<'a, Indexes, IndexesIter>(
&self,
indexes: Indexes
) -> ByIdStats<EmbeddedStats> where
EmbeddedIndex: 'a,
Indexes: IntoIterator<Item = &'a VersionedByIdIndex<EmbeddedIndex>, IntoIter = IndexesIter> + ExactSizeIterator,
IndexesIter: Iterator<Item = &'a VersionedByIdIndex<EmbeddedIndex>> + ExactSizeIterator + Clone,
fn reduce<'a, Indexes, IndexesIter>(
&self,
indexes: Indexes
) -> ByIdStats<EmbeddedStats> where
EmbeddedIndex: 'a,
Indexes: IntoIterator<Item = &'a VersionedByIdIndex<EmbeddedIndex>, IntoIter = IndexesIter> + ExactSizeIterator,
IndexesIter: Iterator<Item = &'a VersionedByIdIndex<EmbeddedIndex>> + ExactSizeIterator + Clone,
Reduces one or more indexes into a single reduced index.
sourcefn rereduce<'a, ReducedIndexes: IntoIterator<Item = &'a ByIdStats<EmbeddedStats>, IntoIter = ReducedIndexesIter> + ExactSizeIterator, ReducedIndexesIter: Iterator<Item = &'a ByIdStats<EmbeddedStats>> + ExactSizeIterator + Clone>(
&self,
values: ReducedIndexes
) -> ByIdStats<EmbeddedStats> where
Self: 'a,
EmbeddedStats: 'a,
fn rereduce<'a, ReducedIndexes: IntoIterator<Item = &'a ByIdStats<EmbeddedStats>, IntoIter = ReducedIndexesIter> + ExactSizeIterator, ReducedIndexesIter: Iterator<Item = &'a ByIdStats<EmbeddedStats>> + ExactSizeIterator + Clone>(
&self,
values: ReducedIndexes
) -> ByIdStats<EmbeddedStats> where
Self: 'a,
EmbeddedStats: 'a,
Reduces one or more previously-reduced indexes into a single reduced index.
Auto Trait Implementations
impl<EmbeddedStats> RefUnwindSafe for ByIdStats<EmbeddedStats> where
EmbeddedStats: RefUnwindSafe,
impl<EmbeddedStats> Send for ByIdStats<EmbeddedStats> where
EmbeddedStats: Send,
impl<EmbeddedStats> Sync for ByIdStats<EmbeddedStats> where
EmbeddedStats: Sync,
impl<EmbeddedStats> Unpin for ByIdStats<EmbeddedStats> where
EmbeddedStats: Unpin,
impl<EmbeddedStats> UnwindSafe for ByIdStats<EmbeddedStats> where
EmbeddedStats: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more