pub enum RowSelectionCursor {
All,
Mask(MaskCursor),
Selectors(SelectorsCursor),
}Expand description
Cursor for iterating a RowSelection during execution within a
ReadPlan.
This keeps per-reader state such as the current position and delegates the
actual storage strategy to the internal RowSelectionBacking.
Variants§
All
Reading all rows
Mask(MaskCursor)
Use a bitmask to back the selection (dense selections)
Selectors(SelectorsCursor)
Use a queue of selectors to back the selection (sparse selections)
Implementations§
Source§impl RowSelectionCursor
impl RowSelectionCursor
Sourcepub(crate) fn new_mask_from_selectors(selectors: Vec<RowSelector>) -> Self
pub(crate) fn new_mask_from_selectors(selectors: Vec<RowSelector>) -> Self
Create a MaskCursor cursor backed by a bitmask, from an existing set of selectors
Sourcepub(crate) fn new_selectors(selectors: Vec<RowSelector>) -> Self
pub(crate) fn new_selectors(selectors: Vec<RowSelector>) -> Self
Create a RowSelectionCursor::Selectors from the provided selectors
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RowSelectionCursor
impl RefUnwindSafe for RowSelectionCursor
impl Send for RowSelectionCursor
impl Sync for RowSelectionCursor
impl Unpin for RowSelectionCursor
impl UnwindSafe for RowSelectionCursor
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> 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 more