pub struct MaskCursor {
mask: BooleanBuffer,
position: usize,
}Expand description
Cursor for iterating a mask-backed RowSelection
This is best for dense selections where there are many small skips or selections. For example, selecting every other row.
Fields§
§mask: BooleanBuffer§position: usizeCurrent absolute offset into the selection
Implementations§
Source§impl MaskCursor
impl MaskCursor
Sourcepub fn next_mask_chunk(&mut self, batch_size: usize) -> Option<MaskChunk>
pub fn next_mask_chunk(&mut self, batch_size: usize) -> Option<MaskChunk>
Advance through the mask representation, producing the next chunk summary
Sourcepub fn mask_values_for(
&self,
chunk: &MaskChunk,
) -> Result<BooleanArray, ParquetError>
pub fn mask_values_for( &self, chunk: &MaskChunk, ) -> Result<BooleanArray, ParquetError>
Materialise the boolean values for a mask-backed chunk
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MaskCursor
impl RefUnwindSafe for MaskCursor
impl Send for MaskCursor
impl Sync for MaskCursor
impl Unpin for MaskCursor
impl UnwindSafe for MaskCursor
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