Skip to main content

RowGroupFrontier

Struct RowGroupFrontier 

Source
struct RowGroupFrontier {
    parquet_metadata: Arc<ParquetMetaData>,
    row_groups: VecDeque<usize>,
    selection: Option<RowSelection>,
    budget: RowBudget,
    has_predicates: bool,
}

Fields§

§parquet_metadata: Arc<ParquetMetaData>

Metadata used to resolve row counts for queued row groups.

§row_groups: VecDeque<usize>

Row group indices not yet handed to the builder.

§selection: Option<RowSelection>

Cross-row-group cursor for the optional global row selection.

§budget: RowBudget

Offset/limit budget before the next readable row group is planned.

§has_predicates: bool

If predicates are present, row groups with selected rows must be read so the predicate can decide whether they are actually needed.

Implementations§

Source§

impl RowGroupFrontier

Source

fn new( parquet_metadata: Arc<ParquetMetaData>, row_groups: Vec<usize>, selection: Option<RowSelection>, budget: RowBudget, has_predicates: bool, ) -> Self

Source

fn row_group_num_rows( &self, row_group_idx: usize, ) -> Result<usize, ParquetError>

Source

fn update_budget_after_row_group(&mut self, budget: RowBudget)

Source

fn peek_next_row_group(&self) -> Result<Option<usize>, ParquetError>

Peek at the next row-group index Self::next_readable_row_group would hand out, without mutating any state. Returns None if every remaining row group would be skipped under the current selection/budget, or if the queue is empty.

Runs the real Self::next_readable_row_group advance logic on a throwaway clone of the frontier, so peek can never drift from the read path. The clone copies the queued row-group indices and optional row-selection (a Vec<RowSelector>); see RemainingRowGroups::peek_next_row_group.

Source

fn clear_remaining(&mut self)

Source

fn plan_selected_row_group( &self, next_row_group: NextRowGroup, selected_rows: usize, ) -> QueuedRowGroupDecision

Plan whether a selected row group should be read or skipped.

Selection-only skips are handled before this method is called. This method applies the remaining offset/limit budget and predicate conservatism.

Source

fn next_readable_row_group( &mut self, ) -> Result<Option<NextRowGroup>, ParquetError>

Advance queued row groups until one should be handed to the builder.

Trait Implementations§

Source§

impl Clone for RowGroupFrontier

Source§

fn clone(&self) -> RowGroupFrontier

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RowGroupFrontier

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Ungil for T
where T: Send,

§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V