pub struct StatsOptions { /* private fields */ }Expand description
Configures structured-stats output and JSON synthesis in scan metadata. Existing JSON passes through for commits and checkpoints without compatible structured stats unless stats are disabled.
Most consumers should pick one of the named constructors:
Self::json_only(default) – JSON stats only.Self::all_struct– all struct stats without JSON synthesis. Compatible checkpoints omit JSON stats; commits and checkpoints without compatible structured stats pass existing JSON through.Self::struct_columns– selected struct stats with the same JSON behavior.Self::all– both representations.Self::none– neither, AND disables internal data skipping. Unlike the other four constructors, this is the only one that stops kernel from reading stats from parquet at all.
Implementations§
Source§impl StatsOptions
impl StatsOptions
Sourcepub fn json_only() -> Self
pub fn json_only() -> Self
JSON only. Equivalent to Default::default.
Sourcepub fn all_struct() -> Self
pub fn all_struct() -> Self
All struct stats without JSON synthesis. Compatible checkpoints omit JSON stats and avoid
per-batch ToJson; commits and checkpoints without compatible structured stats pass
existing JSON through.
Sourcepub fn struct_columns(cols: Vec<ColumnName>) -> Self
pub fn struct_columns(cols: Vec<ColumnName>) -> Self
Struct stats for at least the specified columns without JSON synthesis. Predicate-referenced columns may also appear because scan paths can retain stats used for data skipping.
Sourcepub fn none() -> Self
pub fn none() -> Self
Disables all stats work: no stats output, no internal data skipping (even when a predicate is set). Kernel reads no stats columns from parquet at all. Use when the engine handles its own pruning.
To get internal predicate-based skipping without stats_parsed output, use
StatsOptions::default (JSON only) or set struct_stats to All/Columns(_).
Trait Implementations§
Source§impl Clone for StatsOptions
impl Clone for StatsOptions
Source§fn clone(&self) -> StatsOptions
fn clone(&self) -> StatsOptions
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 StatsOptions
impl Debug for StatsOptions
Auto Trait Implementations§
impl Freeze for StatsOptions
impl RefUnwindSafe for StatsOptions
impl Send for StatsOptions
impl Sync for StatsOptions
impl Unpin for StatsOptions
impl UnsafeUnpin for StatsOptions
impl UnwindSafe for StatsOptions
Blanket Implementations§
Source§impl<T> AsAny for T
impl<T> AsAny for T
Source§fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)
fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)
dyn Any reference to the object: Read moreSource§fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ
fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ
Arc<dyn Any> reference to the object: Read moreSource§fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>
fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>
Box<dyn Any>: Read moreSource§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
std::any::type_name, since Any does not provide it and
Any::type_id is useless as a debugging aid (its Debug is just a mess of hex digits).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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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