#[non_exhaustive]pub struct TableOptimizer {
pub type: Option<TableOptimizerType>,
pub configuration: Option<TableOptimizerConfiguration>,
pub last_run: Option<TableOptimizerRun>,
pub configuration_source: Option<ConfigurationSource>,
}Expand description
Contains details about an optimizer associated with a table.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type: Option<TableOptimizerType>The type of table optimizer. The valid values are:
-
compaction: for managing compaction with a table optimizer. -
retention: for managing the retention of snapshot with a table optimizer. -
orphan_file_deletion: for managing the deletion of orphan files with a table optimizer.
configuration: Option<TableOptimizerConfiguration>A TableOptimizerConfiguration object that was specified when creating or updating a table optimizer.
last_run: Option<TableOptimizerRun>A TableOptimizerRun object representing the last run of the table optimizer.
configuration_source: Option<ConfigurationSource>Specifies the source of the optimizer configuration. This indicates how the table optimizer was configured and which entity or service initiated the configuration.
Implementations§
Source§impl TableOptimizer
impl TableOptimizer
Sourcepub fn type(&self) -> Option<&TableOptimizerType>
pub fn type(&self) -> Option<&TableOptimizerType>
The type of table optimizer. The valid values are:
-
compaction: for managing compaction with a table optimizer. -
retention: for managing the retention of snapshot with a table optimizer. -
orphan_file_deletion: for managing the deletion of orphan files with a table optimizer.
Sourcepub fn configuration(&self) -> Option<&TableOptimizerConfiguration>
pub fn configuration(&self) -> Option<&TableOptimizerConfiguration>
A TableOptimizerConfiguration object that was specified when creating or updating a table optimizer.
Sourcepub fn last_run(&self) -> Option<&TableOptimizerRun>
pub fn last_run(&self) -> Option<&TableOptimizerRun>
A TableOptimizerRun object representing the last run of the table optimizer.
Sourcepub fn configuration_source(&self) -> Option<&ConfigurationSource>
pub fn configuration_source(&self) -> Option<&ConfigurationSource>
Specifies the source of the optimizer configuration. This indicates how the table optimizer was configured and which entity or service initiated the configuration.
Source§impl TableOptimizer
impl TableOptimizer
Sourcepub fn builder() -> TableOptimizerBuilder
pub fn builder() -> TableOptimizerBuilder
Creates a new builder-style object to manufacture TableOptimizer.
Trait Implementations§
Source§impl Clone for TableOptimizer
impl Clone for TableOptimizer
Source§fn clone(&self) -> TableOptimizer
fn clone(&self) -> TableOptimizer
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TableOptimizer
impl Debug for TableOptimizer
Source§impl PartialEq for TableOptimizer
impl PartialEq for TableOptimizer
Source§fn eq(&self, other: &TableOptimizer) -> bool
fn eq(&self, other: &TableOptimizer) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TableOptimizer
Auto Trait Implementations§
impl Freeze for TableOptimizer
impl RefUnwindSafe for TableOptimizer
impl Send for TableOptimizer
impl Sync for TableOptimizer
impl Unpin for TableOptimizer
impl UnsafeUnpin for TableOptimizer
impl UnwindSafe for TableOptimizer
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
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