Skip to main content

RowGroupPlan

Enum RowGroupPlan 

Source
pub(crate) enum RowGroupPlan {
    Global {
        row_groups: Option<Vec<usize>>,
        selection: Option<RowSelection>,
    },
    PerRowGroup(Vec<RowGroupSelection>),
    Conflicting,
}
Expand description

Row-selection configuration shared by the Arrow reader builders.

Variants§

§

Global

First select row_groups, if provided, and then apply selection across the concatenated rows from those row groups.

This is formed by ArrowReaderBuilder::with_row_groups and ArrowReaderBuilder::with_row_selection.

Fields

§row_groups: Option<Vec<usize>>
§

PerRowGroup(Vec<RowGroupSelection>)

Apply each row-group-local selection independently, in the order supplied.

This is formed by with_row_group_selections on the push decoder and async stream builders.

§

Conflicting

Mutually exclusive global and per-row-group configuration was supplied. This is reported as an error when the reader is built.

Implementations§

Source§

impl RowGroupPlan

Source

fn set_row_groups(&mut self, new_row_groups: Vec<usize>)

Source

fn set_row_selection(&mut self, new_selection: RowSelection)

Source

pub(crate) fn set_row_group_selections( &mut self, row_group_selections: Vec<RowGroupSelection>, )

Source

pub(crate) fn conflict_error() -> ParquetError

Source

fn into_global(self) -> Result<(Option<Vec<usize>>, Option<RowSelection>)>

Trait Implementations§

Source§

impl Debug for RowGroupPlan

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

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
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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,