Struct polars::chunked_array::metadata::Metadata
source · pub struct Metadata<T>where
T: PolarsDataType,{ /* private fields */ }
Implementations§
source§impl<T> Metadata<T>where
T: PolarsDataType,
impl<T> Metadata<T>where
T: PolarsDataType,
pub const DEFAULT: Metadata<T> = _
pub fn sorted(self, is_sorted: IsSorted) -> Metadata<T>
pub fn fast_explode_list(self, fast_explode_list: bool) -> Metadata<T>
pub fn flags(self, flags: MetadataFlags) -> Metadata<T>
pub fn min_value( self, min_value: <T as PolarsDataType>::OwnedPhysical ) -> Metadata<T>
pub fn max_value( self, max_value: <T as PolarsDataType>::OwnedPhysical ) -> Metadata<T>
pub fn distinct_count(self, distinct_count: u32) -> Metadata<T>
pub fn sorted_opt(self, is_sorted: Option<IsSorted>) -> Metadata<T>
pub fn fast_explode_list_opt( self, fast_explode_list: Option<bool> ) -> Metadata<T>
pub fn flags_opt(self, flags: Option<MetadataFlags>) -> Metadata<T>
pub fn min_value_opt( self, min_value: Option<<T as PolarsDataType>::OwnedPhysical> ) -> Metadata<T>
pub fn max_value_opt( self, max_value: Option<<T as PolarsDataType>::OwnedPhysical> ) -> Metadata<T>
pub fn distinct_count_opt(self, distinct_count: Option<u32>) -> Metadata<T>
sourcepub fn filter_props_cast<O>(&self, props: MetadataProperties) -> Metadata<O>where
O: PolarsDataType,
pub fn filter_props_cast<O>(&self, props: MetadataProperties) -> Metadata<O>where
O: PolarsDataType,
Create a Metadata
with only the properties set in props
.
sourcepub fn filter_props(&self, props: MetadataProperties) -> Metadata<T>
pub fn filter_props(&self, props: MetadataProperties) -> Metadata<T>
Create a Metadata
with only the properties set in props
.
sourcepub fn merge(&self, other: Metadata<T>) -> MetadataMerge<T>
pub fn merge(&self, other: Metadata<T>) -> 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(&self) -> IsSorted
pub fn set_sorted_flag(&mut self, is_sorted: IsSorted)
pub fn set_min_value( &mut self, min_value: Option<<T as PolarsDataType>::OwnedPhysical> )
pub fn set_max_value( &mut self, max_value: Option<<T as PolarsDataType>::OwnedPhysical> )
pub fn set_distinct_count(&mut self, distinct_count: Option<u32>)
pub fn set_flags(&mut self, flags: MetadataFlags)
pub fn get_min_value(&self) -> Option<&<T as PolarsDataType>::OwnedPhysical>
pub fn get_max_value(&self) -> Option<&<T as PolarsDataType>::OwnedPhysical>
pub fn get_distinct_count(&self) -> Option<u32>
pub fn get_flags(&self) -> MetadataFlags
Trait Implementations§
source§impl<T> Clone for Metadata<T>where
T: PolarsDataType,
impl<T> Clone for Metadata<T>where
T: PolarsDataType,
source§impl<T> Debug for Metadata<T>where
T: PolarsDataType,
impl<T> Debug for Metadata<T>where
T: PolarsDataType,
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> 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