pub enum RowDatasetVersionMeta {
Inline(Vec<u8>),
External(ExternalFile),
}Expand description
Metadata about the location of dataset version sequence data Following the same pattern as RowIdMeta
Variants§
Inline(Vec<u8>)
Small sequences stored inline in the fragment metadata
External(ExternalFile)
Large sequences stored in external files
Implementations§
Source§impl RowDatasetVersionMeta
impl RowDatasetVersionMeta
Sourcepub fn from_sequence(sequence: &RowDatasetVersionSequence) -> Result<Self>
pub fn from_sequence(sequence: &RowDatasetVersionSequence) -> Result<Self>
Create inline metadata from a version sequence
Sourcepub fn from_external_file(path: String, offset: u64, size: u64) -> Self
pub fn from_external_file(path: String, offset: u64, size: u64) -> Self
Create external metadata reference
Sourcepub fn load_sequence(&self) -> Result<RowDatasetVersionSequence>
pub fn load_sequence(&self) -> Result<RowDatasetVersionSequence>
Load the version sequence from this metadata
Trait Implementations§
Source§impl Clone for RowDatasetVersionMeta
impl Clone for RowDatasetVersionMeta
Source§fn clone(&self) -> RowDatasetVersionMeta
fn clone(&self) -> RowDatasetVersionMeta
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 RowDatasetVersionMeta
impl Debug for RowDatasetVersionMeta
Source§impl DeepSizeOf for RowDatasetVersionMeta
impl DeepSizeOf for RowDatasetVersionMeta
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<'de> Deserialize<'de> for RowDatasetVersionMeta
impl<'de> Deserialize<'de> for RowDatasetVersionMeta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RowDatasetVersionMeta
impl PartialEq for RowDatasetVersionMeta
Source§impl Serialize for RowDatasetVersionMeta
impl Serialize for RowDatasetVersionMeta
impl Eq for RowDatasetVersionMeta
impl StructuralPartialEq for RowDatasetVersionMeta
Auto Trait Implementations§
impl Freeze for RowDatasetVersionMeta
impl RefUnwindSafe for RowDatasetVersionMeta
impl Send for RowDatasetVersionMeta
impl Sync for RowDatasetVersionMeta
impl Unpin for RowDatasetVersionMeta
impl UnwindSafe for RowDatasetVersionMeta
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