pub(crate) struct ReadPlan {
batch_size: usize,
selection: Option<VecDeque<RowSelector>>,
}
Expand description
A plan reading specific rows from a Parquet Row Group.
See ReadPlanBuilder
to create ReadPlan
s
Fields§
§batch_size: usize
The number of rows to read in each batch
selection: Option<VecDeque<RowSelector>>
Row ranges to be selected from the data source
Implementations§
Source§impl ReadPlan
impl ReadPlan
Sourcepub(crate) fn selection_mut(&mut self) -> Option<&mut VecDeque<RowSelector>>
pub(crate) fn selection_mut(&mut self) -> Option<&mut VecDeque<RowSelector>>
Returns a mutable reference to the selection, if any
Sourcepub fn batch_size(&self) -> usize
pub fn batch_size(&self) -> usize
Return the number of rows to read in each output batch
Auto Trait Implementations§
impl Freeze for ReadPlan
impl RefUnwindSafe for ReadPlan
impl Send for ReadPlan
impl Sync for ReadPlan
impl Unpin for ReadPlan
impl UnwindSafe for ReadPlan
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