pub struct RowDatasetVersionSequence {
pub runs: Vec<RowDatasetVersionRun>,
}Expand description
Sequence of dataset versions
Stores version runs aligned to the positional order of RowIdSequence. Provides sequential iterators and optional lightweight indexing for efficient random access.
Fields§
§runs: Vec<RowDatasetVersionRun>Implementations§
Source§impl RowDatasetVersionSequence
impl RowDatasetVersionSequence
Sourcepub fn from_uniform_row_count(row_count: u64, version: u64) -> Self
pub fn from_uniform_row_count(row_count: u64, version: u64) -> Self
Create a version sequence with a single uniform run of row_count rows.
Sourcepub fn versions(&self) -> VersionsIter<'_> ⓘ
pub fn versions(&self) -> VersionsIter<'_> ⓘ
Returns a forward iterator over versions, expanding runs lazily.
Sourcepub fn version_at(&self, index: usize) -> Option<u64>
pub fn version_at(&self, index: usize) -> Option<u64>
Random access: get the version at global row position index.
Sourcepub fn get_version_for_row_id(
&self,
row_ids: &RowIdSequence,
row_id: u64,
) -> Option<u64>
pub fn get_version_for_row_id( &self, row_ids: &RowIdSequence, row_id: u64, ) -> Option<u64>
Get the version associated with a specific row id.
This reconstructs the positional offset from RowIdSequence and then
performs version_at lookup.
Sourcepub fn rows_with_version_greater_than(
&self,
row_ids: &RowIdSequence,
threshold: u64,
) -> Vec<u64>
pub fn rows_with_version_greater_than( &self, row_ids: &RowIdSequence, threshold: u64, ) -> Vec<u64>
Convenience: collect row IDs with version strictly greater than threshold.
Trait Implementations§
Source§impl Clone for RowDatasetVersionSequence
impl Clone for RowDatasetVersionSequence
Source§fn clone(&self) -> RowDatasetVersionSequence
fn clone(&self) -> RowDatasetVersionSequence
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RowDatasetVersionSequence
impl Debug for RowDatasetVersionSequence
Source§impl DeepSizeOf for RowDatasetVersionSequence
impl DeepSizeOf for RowDatasetVersionSequence
Source§fn deep_size_of_children(&self, context: &mut Context) -> usize
fn deep_size_of_children(&self, context: &mut Context) -> usize
Returns an estimation of the heap-managed storage of this object.
This does not include the size of the object itself. Read more
Source§fn deep_size_of(&self) -> usize
fn deep_size_of(&self) -> usize
Returns an estimation of a total size of memory owned by the
object, including heap-managed storage. Read more
Source§impl Default for RowDatasetVersionSequence
impl Default for RowDatasetVersionSequence
Source§fn default() -> RowDatasetVersionSequence
fn default() -> RowDatasetVersionSequence
Returns the “default value” for a type. Read more
impl Eq for RowDatasetVersionSequence
impl StructuralPartialEq for RowDatasetVersionSequence
Auto Trait Implementations§
impl Freeze for RowDatasetVersionSequence
impl RefUnwindSafe for RowDatasetVersionSequence
impl Send for RowDatasetVersionSequence
impl Sync for RowDatasetVersionSequence
impl Unpin for RowDatasetVersionSequence
impl UnwindSafe for RowDatasetVersionSequence
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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