Struct deltalake::arrow::compute::LexicographicalComparator
source · pub struct LexicographicalComparator { /* private fields */ }
Expand description
A lexicographical comparator that wraps given array data (columns) and can lexicographically compare data at given two indices. The lifetime is the same at the data wrapped.
Implementations§
source§impl LexicographicalComparator
impl LexicographicalComparator
sourcepub fn compare(&self, a_idx: usize, b_idx: usize) -> Ordering
pub fn compare(&self, a_idx: usize, b_idx: usize) -> Ordering
lexicographically compare values at the wrapped columns with given indices.
sourcepub fn try_new(
columns: &[SortColumn]
) -> Result<LexicographicalComparator, ArrowError>
pub fn try_new( columns: &[SortColumn] ) -> Result<LexicographicalComparator, ArrowError>
Create a new lex comparator that will wrap the given sort columns and give comparison results with two indices.
Auto Trait Implementations§
impl Freeze for LexicographicalComparator
impl !RefUnwindSafe for LexicographicalComparator
impl Send for LexicographicalComparator
impl Sync for LexicographicalComparator
impl Unpin for LexicographicalComparator
impl !UnwindSafe for LexicographicalComparator
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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>
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 moreCreates a shared type from an unshared type.