struct QueuedRowGroups {
queue: Queue,
counts: HashMap<usize, usize>,
}Expand description
Row groups and selections that have not yet been handed to the row-group reader builder.
Fields§
§queue: Queue§counts: HashMap<usize, usize>The number of times each row group is in queue, so that
Self::contains does not scan the queue.
Implementations§
Source§impl QueuedRowGroups
impl QueuedRowGroups
Sourcefn try_new(
parquet_metadata: &ParquetMetaData,
row_group_plan: RowGroupPlan,
) -> Result<Self, ParquetError>
fn try_new( parquet_metadata: &ParquetMetaData, row_group_plan: RowGroupPlan, ) -> Result<Self, ParquetError>
Validate and queue a row-group plan for parquet_metadata.
Sourcefn into_plan(self) -> RowGroupPlan
fn into_plan(self) -> RowGroupPlan
Convert the remaining queue back into a builder configuration.
fn front(&self) -> Option<usize>
Sourcefn row_groups(&self) -> impl Iterator<Item = usize> + '_
fn row_groups(&self) -> impl Iterator<Item = usize> + '_
The row groups in the queue, in no specific order and without duplicates.
Sourcefn contains(&self, row_group_idx: usize) -> bool
fn contains(&self, row_group_idx: usize) -> bool
Returns true if row_group_idx is in the queue.
fn len(&self) -> usize
fn clear(&mut self)
Sourcefn global_selection_is_exhausted(&self) -> bool
fn global_selection_is_exhausted(&self) -> bool
Sourcefn pop_front_selection(&mut self, row_count: usize) -> Option<RowSelection>
fn pop_front_selection(&mut self, row_count: usize) -> Option<RowSelection>
Remove the front row group and return its local selection.
Trait Implementations§
Source§impl Clone for QueuedRowGroups
impl Clone for QueuedRowGroups
Auto Trait Implementations§
impl Freeze for QueuedRowGroups
impl RefUnwindSafe for QueuedRowGroups
impl Send for QueuedRowGroups
impl Sync for QueuedRowGroups
impl Unpin for QueuedRowGroups
impl UnsafeUnpin for QueuedRowGroups
impl UnwindSafe for QueuedRowGroups
Blanket Implementations§
impl<T> Allocation for T
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