pub struct LexicographicalComparator<'a> { /* 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§
§impl LexicographicalComparator<'_>
impl LexicographicalComparator<'_>
pub 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.
pub 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<'a> !RefUnwindSafe for LexicographicalComparator<'a>
impl<'a> Send for LexicographicalComparator<'a>
impl<'a> Sync for LexicographicalComparator<'a>
impl<'a> Unpin for LexicographicalComparator<'a>
impl<'a> !UnwindSafe for LexicographicalComparator<'a>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request