Struct lance_index::optimize::OptimizeOptions
source · pub struct OptimizeOptions {
pub num_indices_to_merge: usize,
}Expand description
Options for optimizing all indices.
Fields§
§num_indices_to_merge: usizeNumber of delta indices to merge for one column. Default: 1.
If num_indices_to_merge is 0, a new delta index will be created.
If num_indices_to_merge is 1, the delta updates will be merged into the latest index.
If num_indices_to_merge is more than 1, the delta updates and latest N indices
will be merged into one single index.
It is up to the caller to decide how many indices to merge / keep. Callers can
find out how many indices are there by calling [Dataset::index_statistics].
A common usage pattern will be that, the caller can keep a large snapshot of the index of the base version, and accumulate a few delta indices, then merge them into the snapshot.
Trait Implementations§
source§impl Debug for OptimizeOptions
impl Debug for OptimizeOptions
Auto Trait Implementations§
impl Freeze for OptimizeOptions
impl RefUnwindSafe for OptimizeOptions
impl Send for OptimizeOptions
impl Sync for OptimizeOptions
impl Unpin for OptimizeOptions
impl UnwindSafe for OptimizeOptions
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
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