Struct nebari::tree::VersionedByIdIndex
source · [−]pub struct VersionedByIdIndex<EmbeddedIndex: EmbeddedIndex> {
pub sequence_id: SequenceId,
pub value_length: u32,
pub position: u64,
pub embedded: EmbeddedIndex,
}
Expand description
The index stored within VersionedTreeRoot::by_id_root
.
Fields
sequence_id: SequenceId
The unique sequence id generated when writing the value to the file.
value_length: u32
The size of the value stored on disk.
position: u64
The position of the value on disk.
embedded: EmbeddedIndex
The embedded index.
Trait Implementations
sourceimpl<EmbeddedIndex: Clone + EmbeddedIndex> Clone for VersionedByIdIndex<EmbeddedIndex>
impl<EmbeddedIndex: Clone + EmbeddedIndex> Clone for VersionedByIdIndex<EmbeddedIndex>
sourcefn clone(&self) -> VersionedByIdIndex<EmbeddedIndex>
fn clone(&self) -> VersionedByIdIndex<EmbeddedIndex>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<EmbeddedIndex: Debug + EmbeddedIndex> Debug for VersionedByIdIndex<EmbeddedIndex>
impl<EmbeddedIndex: Debug + EmbeddedIndex> Debug for VersionedByIdIndex<EmbeddedIndex>
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.
sourceimpl<EmbeddedIndex: EmbeddedIndex> ValueIndex for VersionedByIdIndex<EmbeddedIndex>
impl<EmbeddedIndex: EmbeddedIndex> ValueIndex for VersionedByIdIndex<EmbeddedIndex>
Auto Trait Implementations
impl<EmbeddedIndex> RefUnwindSafe for VersionedByIdIndex<EmbeddedIndex> where
EmbeddedIndex: RefUnwindSafe,
impl<EmbeddedIndex> Send for VersionedByIdIndex<EmbeddedIndex>
impl<EmbeddedIndex> Sync for VersionedByIdIndex<EmbeddedIndex>
impl<EmbeddedIndex> Unpin for VersionedByIdIndex<EmbeddedIndex> where
EmbeddedIndex: Unpin,
impl<EmbeddedIndex> UnwindSafe for VersionedByIdIndex<EmbeddedIndex> where
EmbeddedIndex: 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