pub enum ColumnOrder {
TYPE_DEFINED_ORDER(SortOrder),
UNDEFINED,
}
Expand description
Column order that specifies what method was used to aggregate min/max values for statistics.
If column order is undefined, then it is the legacy behaviour and all values should be compared as signed values/bytes.
Variants§
TYPE_DEFINED_ORDER(SortOrder)
Column uses the order defined by its logical or physical type (if there is no logical type), parquet-format 2.4.0+.
UNDEFINED
Undefined column order, means legacy behaviour before parquet-format 2.4.0. Sort order is always SIGNED.
Implementations§
Source§impl ColumnOrder
impl ColumnOrder
Sourcepub fn get_sort_order(
logical_type: Option<LogicalType>,
converted_type: ConvertedType,
physical_type: Type,
) -> SortOrder
pub fn get_sort_order( logical_type: Option<LogicalType>, converted_type: ConvertedType, physical_type: Type, ) -> SortOrder
Returns sort order for a physical/logical type.
fn get_converted_sort_order( converted_type: ConvertedType, physical_type: Type, ) -> SortOrder
Sourcefn get_default_sort_order(physical_type: Type) -> SortOrder
fn get_default_sort_order(physical_type: Type) -> SortOrder
Returns default sort order based on physical type.
Sourcepub fn sort_order(&self) -> SortOrder
pub fn sort_order(&self) -> SortOrder
Returns sort order associated with this column order.
Trait Implementations§
Source§impl Clone for ColumnOrder
impl Clone for ColumnOrder
Source§fn clone(&self) -> ColumnOrder
fn clone(&self) -> ColumnOrder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ColumnOrder
impl Debug for ColumnOrder
Source§impl Display for ColumnOrder
impl Display for ColumnOrder
Source§impl HeapSize for ColumnOrder
impl HeapSize for ColumnOrder
Source§impl PartialEq for ColumnOrder
impl PartialEq for ColumnOrder
impl Copy for ColumnOrder
impl Eq for ColumnOrder
impl StructuralPartialEq for ColumnOrder
Auto Trait Implementations§
impl Freeze for ColumnOrder
impl RefUnwindSafe for ColumnOrder
impl Send for ColumnOrder
impl Sync for ColumnOrder
impl Unpin for ColumnOrder
impl UnwindSafe for ColumnOrder
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. 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