pub struct PartitionValuesOptions { /* private fields */ }Expand description
Engine-facing partition value options. Pass to ScanBuilder::with_partition_values to
declare whether scan metadata output includes the typed partitionValues_parsed struct
alongside the raw string map (fileConstantValues.partitionValues), which is always present.
When the typed struct is requested, scan metadata output gains a top-level
partitionValues_parsed struct column with one typed nullable field per partition column
(physical names, table partition-column order). On non-partitioned tables the column is
omitted. Values come directly from the checkpoint’s native partitionValues_parsed column
when present, otherwise from parsing the string map.
Implementations§
Source§impl PartitionValuesOptions
impl PartitionValuesOptions
Sourcepub fn string_map_only() -> Self
pub fn string_map_only() -> Self
Raw string map only, no typed struct. Equivalent to Default::default.
Sourcepub fn with_struct() -> Self
pub fn with_struct() -> Self
Emit the typed partitionValues_parsed struct alongside the raw string map. Lets engines
consume partitionValues_parsed directly instead of parsing the string map per row.
Trait Implementations§
Source§impl Clone for PartitionValuesOptions
impl Clone for PartitionValuesOptions
Source§fn clone(&self) -> PartitionValuesOptions
fn clone(&self) -> PartitionValuesOptions
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 PartitionValuesOptions
impl Debug for PartitionValuesOptions
Source§impl Default for PartitionValuesOptions
impl Default for PartitionValuesOptions
Source§fn default() -> PartitionValuesOptions
fn default() -> PartitionValuesOptions
Auto Trait Implementations§
impl Freeze for PartitionValuesOptions
impl RefUnwindSafe for PartitionValuesOptions
impl Send for PartitionValuesOptions
impl Sync for PartitionValuesOptions
impl Unpin for PartitionValuesOptions
impl UnsafeUnpin for PartitionValuesOptions
impl UnwindSafe for PartitionValuesOptions
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