enum Queue {
Global {
row_groups: VecDeque<usize>,
selection: Option<RowSelection>,
},
PerRowGroup(VecDeque<RowGroupSelection>),
}Expand description
The queue of QueuedRowGroups.
Variants§
Global
One selection cursor spans all queued row groups.
PerRowGroup(VecDeque<RowGroupSelection>)
Selections are already relative to their respective row groups.
Implementations§
Source§impl Queue
impl Queue
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_group_indices(&self) -> Vec<usize>
fn row_group_indices(&self) -> Vec<usize>
The queued row group indexes, in order.
fn len(&self) -> usize
fn clear(&mut self)
Sourcefn global_selection_is_exhausted(&self) -> bool
fn global_selection_is_exhausted(&self) -> bool
Returns true when a shared global selection has no selected rows left.
Per-row-group selections are independent and are drained one at a time.
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§
Auto Trait Implementations§
impl Freeze for Queue
impl RefUnwindSafe for Queue
impl Send for Queue
impl Sync for Queue
impl Unpin for Queue
impl UnsafeUnpin for Queue
impl UnwindSafe for Queue
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