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 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 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> 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, 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<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

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