pub struct MaintainOptions {
pub compact: bool,
pub retention: bool,
pub expire: bool,
pub min_small_files: usize,
pub partitions: Option<HashSet<Option<i32>>>,
pub tiered: bool,
}Expand description
Options for Table::maintain. The default does everything, rewriting each partition into
sorted files of the target size.
Fields§
§compact: boolMerge small or unsorted files.
retention: boolDrop partitions older than the table’s retention.
expire: boolExpire old snapshots and delete the files only they used.
min_small_files: usizeCompact a partition once it has this many small files (default: 2, i.e. whenever useful).
partitions: Option<HashSet<Option<i32>>>Only consider these partitions (None = all).
tiered: boolSize-tiered mode (inline auto-maintenance): merge groups of similarly sized small files
instead of rewriting whole partitions, so write amplification stays logarithmic while
micro-batches stream in. maintain without it produces one sorted file per partition.
Trait Implementations§
Source§impl Clone for MaintainOptions
impl Clone for MaintainOptions
Source§impl Debug for MaintainOptions
impl Debug for MaintainOptions
Auto Trait Implementations§
impl Freeze for MaintainOptions
impl RefUnwindSafe for MaintainOptions
impl Send for MaintainOptions
impl Sync for MaintainOptions
impl Unpin for MaintainOptions
impl UnsafeUnpin for MaintainOptions
impl UnwindSafe for MaintainOptions
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
Mutably borrows from an owned value. Read more
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> Downcast for T
impl<T> Downcast for T
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