Struct datafusion::physical_plan::sorts::SortKeyCursor
source · pub struct SortKeyCursor { /* private fields */ }
Expand description
A SortKeyCursor
is created from a RecordBatch
, and a set of
PhysicalExpr
that when evaluated on the RecordBatch
yield the sort keys.
Additionally it maintains a row cursor that can be advanced through the rows
of the provided RecordBatch
SortKeyCursor::compare
can then be used to compare the sort key pointed to
by this row cursor, with that of another SortKeyCursor
. A cursor stores
a row comparator for each other cursor that it is compared to.
Implementations§
source§impl SortKeyCursor
impl SortKeyCursor
sourcepub fn stream_idx(&self) -> usize
pub fn stream_idx(&self) -> usize
Return the stream index of this cursor
sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Return true if the stream is finished
Trait Implementations§
source§impl Debug for SortKeyCursor
impl Debug for SortKeyCursor
source§impl Ord for SortKeyCursor
impl Ord for SortKeyCursor
source§impl PartialEq<SortKeyCursor> for SortKeyCursor
impl PartialEq<SortKeyCursor> for SortKeyCursor
source§impl PartialOrd<SortKeyCursor> for SortKeyCursor
impl PartialOrd<SortKeyCursor> for SortKeyCursor
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for SortKeyCursor
Auto Trait Implementations§
impl RefUnwindSafe for SortKeyCursor
impl Send for SortKeyCursor
impl Sync for SortKeyCursor
impl Unpin for SortKeyCursor
impl UnwindSafe for SortKeyCursor
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.