pub struct FixedLexicographicalComparator<const N: usize> { /* private fields */ }Expand description
A lexicographical comparator that wraps given array data (columns) and can lexicographically compare data at given two indices. This version of the comparator is for compile-time constant number of columns. The lifetime is the same at the data wrapped.
Implementations§
Source§impl<const N: usize> FixedLexicographicalComparator<N>
impl<const N: usize> FixedLexicographicalComparator<N>
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<FixedLexicographicalComparator<N>, ArrowError>
pub fn try_new( columns: &[SortColumn], ) -> Result<FixedLexicographicalComparator<N>, ArrowError>
Create a new lex comparator that will wrap the given sort columns and give comparison results with two indices. The number of columns should be equal to the compile-time constant N.
Auto Trait Implementations§
impl<const N: usize> Freeze for FixedLexicographicalComparator<N>
impl<const N: usize> !RefUnwindSafe for FixedLexicographicalComparator<N>
impl<const N: usize> Send for FixedLexicographicalComparator<N>
impl<const N: usize> Sync for FixedLexicographicalComparator<N>
impl<const N: usize> Unpin for FixedLexicographicalComparator<N>
impl<const N: usize> !UnwindSafe for FixedLexicographicalComparator<N>
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