pub enum ConcreteFileVersion {
V1,
V2_0,
V2_1,
V2_2,
V2_3,
}Expand description
The exact persisted identity of a Lance file format.
Unlike LanceFileVersion, this type cannot represent release selectors such as
stable or next. Exact versions deliberately have no ordering because format
capabilities are not implied by release order.
Variants§
V1
The legacy v1 file format.
V2_0
The v2.0 file format.
V2_1
The v2.1 file format.
V2_2
The v2.2 file format.
V2_3
The v2.3 file format.
Implementations§
Source§impl ConcreteFileVersion
impl ConcreteFileVersion
Sourcepub fn from_manifest_string(value: &str) -> Result<Self>
pub fn from_manifest_string(value: &str) -> Result<Self>
Decode the exact version string stored in a dataset manifest.
Public selector aliases such as legacy, 0.3, stable, and next are
intentionally rejected because manifests only store canonical exact versions.
Sourcepub const fn to_manifest_string(self) -> &'static str
pub const fn to_manifest_string(self) -> &'static str
Encode this exact version as the canonical string stored in a dataset manifest.
Sourcepub fn from_data_file_numbers(major: u32, minor: u32) -> Result<Self>
pub fn from_data_file_numbers(major: u32, minor: u32) -> Result<Self>
Decode the major/minor version stored in DataFile metadata.
Legacy manifests may omit these fields and decode to (0, 0), so all legacy
v1 number pairs accepted by the historical decoder remain valid inputs. The
historical generic decoder also accepted the standard v2.0 footer pair (0, 3);
decoding retains that compatibility while encoding always emits (2, 0).
Sourcepub const fn to_data_file_numbers(self) -> (u32, u32)
pub const fn to_data_file_numbers(self) -> (u32, u32)
Encode the canonical major/minor pair stored in DataFile metadata.
Decode the major/minor version stored in a Lance file footer.
V2.0 has two accepted representations: (0, 3) from the standard file writer
and (2, 0) from self-described and mini-lance writers.
Encode the footer numbers emitted by the standard Lance file writer.
Encode the footer numbers emitted by self-described and mini-lance writers.
Trait Implementations§
Source§impl Clone for ConcreteFileVersion
impl Clone for ConcreteFileVersion
Source§fn clone(&self) -> ConcreteFileVersion
fn clone(&self) -> ConcreteFileVersion
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ConcreteFileVersion
Source§impl Debug for ConcreteFileVersion
impl Debug for ConcreteFileVersion
Source§impl DeepSizeOf for ConcreteFileVersion
impl DeepSizeOf for ConcreteFileVersion
fn deep_size_of_children(&self, _context: &mut Context) -> usize
fn deep_size_of(&self) -> usize
Source§impl Display for ConcreteFileVersion
impl Display for ConcreteFileVersion
impl Eq for ConcreteFileVersion
Source§impl From<ConcreteFileVersion> for LanceFileVersion
impl From<ConcreteFileVersion> for LanceFileVersion
Source§fn from(value: ConcreteFileVersion) -> Self
fn from(value: ConcreteFileVersion) -> Self
Source§impl From<LanceFileVersion> for ConcreteFileVersion
impl From<LanceFileVersion> for ConcreteFileVersion
Source§fn from(value: LanceFileVersion) -> Self
fn from(value: LanceFileVersion) -> Self
Source§impl Hash for ConcreteFileVersion
impl Hash for ConcreteFileVersion
Source§impl PartialEq for ConcreteFileVersion
impl PartialEq for ConcreteFileVersion
impl StructuralPartialEq for ConcreteFileVersion
Auto Trait Implementations§
impl Freeze for ConcreteFileVersion
impl RefUnwindSafe for ConcreteFileVersion
impl Send for ConcreteFileVersion
impl Sync for ConcreteFileVersion
impl Unpin for ConcreteFileVersion
impl UnsafeUnpin for ConcreteFileVersion
impl UnwindSafe for ConcreteFileVersion
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
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<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> ⓘ
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> ⓘ
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