pub struct ManifestBuildConfig {
pub auto_set_feature_flags: bool,
pub timestamp_nanos: u128,
pub use_stable_row_ids: bool,
pub use_legacy_format: Option<bool>,
pub storage_format: Option<DataStorageFormat>,
pub disable_transaction_file: bool,
pub migration_next_row_id: Option<u64>,
}Expand description
Options controlling how a new Manifest is assembled from a transaction.
The timestamp arrives already resolved to nanoseconds since the Unix epoch.
Callers own the clock so that a caller wanting a mockable one keeps it: the
lance crate mocks SystemTime under cfg(test), which only takes effect in
that crate.
Fields§
§auto_set_feature_flags: boolRecompute the manifest’s feature flags from the fragments and settings below. False leaves whatever flags the previous manifest carried.
timestamp_nanos: u128Value for the new manifest’s timestamp, in nanoseconds since the Unix epoch.
use_stable_row_ids: boolRequest the stable row id feature. The flag is also inherited from the previous manifest, so false does not turn it off for a dataset that has it.
use_legacy_format: Option<bool>Overwrite only: force the legacy (true) or v2 (false) file format. None
keeps the format the dataset already had.
storage_format: Option<DataStorageFormat>Overwrite only: force this storage format, taking precedence over
use_legacy_format. None keeps the format the dataset already had.
disable_transaction_file: boolSkip writing a detached transaction file for this commit.
migration_next_row_id: Option<u64>When Some, this commit is the second step of migrate_to_stable_row_ids.
It bypasses the “cannot enable stable row ids on existing dataset” guard and
sets manifest.next_row_id to the provided value before activating the flag.
Trait Implementations§
Source§impl Clone for ManifestBuildConfig
impl Clone for ManifestBuildConfig
Source§fn clone(&self) -> ManifestBuildConfig
fn clone(&self) -> ManifestBuildConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ManifestBuildConfig
impl RefUnwindSafe for ManifestBuildConfig
impl Send for ManifestBuildConfig
impl Sync for ManifestBuildConfig
impl Unpin for ManifestBuildConfig
impl UnsafeUnpin for ManifestBuildConfig
impl UnwindSafe for ManifestBuildConfig
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<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