pub struct Metadata<T: PolarsDataType> { /* private fields */ }
Implementations§
Source§impl<T: PolarsDataType> Metadata<T>
impl<T: PolarsDataType> Metadata<T>
pub const DEFAULT: Metadata<T> = _
pub fn sorted(self, is_sorted: IsSorted) -> Self
pub fn fast_explode_list(self, fast_explode_list: bool) -> Self
pub fn flags(self, flags: MetadataFlags) -> Self
pub fn min_value(self, min_value: T::OwnedPhysical) -> Self
pub fn max_value(self, max_value: T::OwnedPhysical) -> Self
pub fn distinct_count(self, distinct_count: IdxSize) -> Self
pub fn sorted_opt(self, is_sorted: Option<IsSorted>) -> Self
pub fn fast_explode_list_opt(self, fast_explode_list: Option<bool>) -> Self
pub fn flags_opt(self, flags: Option<MetadataFlags>) -> Self
pub fn min_value_opt(self, min_value: Option<T::OwnedPhysical>) -> Self
pub fn max_value_opt(self, max_value: Option<T::OwnedPhysical>) -> Self
pub fn distinct_count_opt(self, distinct_count: Option<IdxSize>) -> Self
Sourcepub fn filter_props_cast<O: PolarsDataType>(
&self,
props: MetadataProperties,
) -> Metadata<O>
pub fn filter_props_cast<O: PolarsDataType>( &self, props: MetadataProperties, ) -> Metadata<O>
Create a Metadata
with only the properties set in props
.
Sourcepub fn filter_props(&self, props: MetadataProperties) -> Self
pub fn filter_props(&self, props: MetadataProperties) -> Self
Create a Metadata
with only the properties set in props
.
Sourcepub fn merge(&self, other: Self) -> MetadataMerge<T>
pub fn merge(&self, other: Self) -> MetadataMerge<T>
Merge the maximum information from both Metadata
s into one Metadata
.
It returns
MetadataMerge::Keep
if theself
already contains all the informationMetadataMerge::New(md)
if we have learned new informationMetadataMerge::Conflict
if the two structures contain conflicting metadata
pub fn is_empty(&self) -> bool
pub fn is_sorted_ascending(&self) -> bool
pub fn set_sorted_ascending(&mut self, value: bool)
pub fn is_sorted_descending(&self) -> bool
pub fn set_sorted_descending(&mut self, value: bool)
pub fn get_fast_explode_list(&self) -> bool
pub fn set_fast_explode_list(&mut self, value: bool)
pub fn is_sorted_any(&self) -> bool
pub fn is_sorted(&self) -> IsSorted
pub fn set_sorted_flag(&mut self, is_sorted: IsSorted)
pub fn set_flags(&mut self, flags: MetadataFlags)
pub fn set_min_value(&mut self, min_value: Option<T::OwnedPhysical>)
pub fn set_max_value(&mut self, max_value: Option<T::OwnedPhysical>)
pub fn set_distinct_count(&mut self, distinct_count: Option<IdxSize>)
pub fn get_flags(&self) -> MetadataFlags
pub fn get_min_value(&self) -> Option<&T::OwnedPhysical>
pub fn get_max_value(&self) -> Option<&T::OwnedPhysical>
pub fn get_distinct_count(&self) -> Option<IdxSize>
Trait Implementations§
Source§impl<T: PolarsDataType> Clone for Metadata<T>
impl<T: PolarsDataType> Clone for Metadata<T>
Source§impl<T: PolarsDataType> Debug for Metadata<T>
impl<T: PolarsDataType> Debug for Metadata<T>
Source§impl<T: PolarsDataType> Default for Metadata<T>
impl<T: PolarsDataType> Default for Metadata<T>
Source§impl<T: PolarsDataType> MetadataTrait for Metadata<T>
impl<T: PolarsDataType> MetadataTrait for Metadata<T>
Auto Trait Implementations§
impl<T> Freeze for Metadata<T>
impl<T> RefUnwindSafe for Metadata<T>
impl<T> Send for Metadata<T>
impl<T> Sync for Metadata<T>
impl<T> Unpin for Metadata<T>
impl<T> UnwindSafe for Metadata<T>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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