pub struct SortField { /* private fields */ }
Expand description
Configure the data type and sort order for a given column
Implementations§
source§impl SortField
impl SortField
sourcepub fn new_with_options(data_type: DataType, options: SortOptions) -> Self
pub fn new_with_options(data_type: DataType, options: SortOptions) -> Self
Create a new column with the given data type and SortOptions
sourcepub fn preserve_dictionaries(self, preserve_dictionaries: bool) -> Self
pub fn preserve_dictionaries(self, preserve_dictionaries: bool) -> Self
By default dictionaries are preserved as described on RowConverter
However, this process requires maintaining and incrementally updating an order-preserving mapping of dictionary values. This is relatively expensive computationally but reduces the size of the encoded rows, minimising memory usage and potentially yielding faster comparisons.
Some applications may wish to instead trade-off space efficiency, for improved encoding performance, by instead encoding dictionary values directly
When preserve_dictionaries
is true, fields will instead be encoded as their
underlying value, reversing any dictionary encoding
Trait Implementations§
source§impl PartialEq<SortField> for SortField
impl PartialEq<SortField> for SortField
impl Eq for SortField
impl StructuralEq for SortField
impl StructuralPartialEq for SortField
Auto Trait Implementations§
impl RefUnwindSafe for SortField
impl Send for SortField
impl Sync for SortField
impl Unpin for SortField
impl UnwindSafe for SortField
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