ParquetOpener

Struct ParquetOpener 

Source
pub(crate) struct ParquetOpener {
Show 21 fields pub partition_index: usize, pub projection: Arc<[usize]>, pub batch_size: usize, pub limit: Option<usize>, pub predicate: Option<Arc<dyn PhysicalExpr>>, pub logical_file_schema: SchemaRef, pub partition_fields: Vec<FieldRef>, pub metadata_size_hint: Option<usize>, pub metrics: ExecutionPlanMetricsSet, pub parquet_file_reader_factory: Arc<dyn ParquetFileReaderFactory>, pub pushdown_filters: bool, pub reorder_filters: bool, pub enable_page_index: bool, pub enable_bloom_filter: bool, pub schema_adapter_factory: Arc<dyn SchemaAdapterFactory>, pub enable_row_group_stats_pruning: bool, pub coerce_int96: Option<TimeUnit>, pub file_decryption_properties: Option<Arc<FileDecryptionProperties>>, pub(crate) expr_adapter_factory: Option<Arc<dyn PhysicalExprAdapterFactory>>, pub encryption_factory: Option<(Arc<dyn EncryptionFactory>, EncryptionFactoryOptions)>, pub max_predicate_cache_size: Option<usize>,
}
Expand description

Implements FileOpener for a parquet file

Fields§

§partition_index: usize

Execution partition index

§projection: Arc<[usize]>

Column indexes in table_schema needed by the query

§batch_size: usize

Target number of rows in each output RecordBatch

§limit: Option<usize>

Optional limit on the number of rows to read

§predicate: Option<Arc<dyn PhysicalExpr>>

Optional predicate to apply during the scan

§logical_file_schema: SchemaRef

Schema of the output table without partition columns. This is the schema we coerce the physical file schema into.

§partition_fields: Vec<FieldRef>

Partition columns

§metadata_size_hint: Option<usize>

Optional hint for how large the initial request to read parquet metadata should be

§metrics: ExecutionPlanMetricsSet

Metrics for reporting

§parquet_file_reader_factory: Arc<dyn ParquetFileReaderFactory>

Factory for instantiating parquet reader

§pushdown_filters: bool

Should the filters be evaluated during the parquet scan using DataFusionArrowPredicate?

§reorder_filters: bool

Should the filters be reordered to optimize the scan?

§enable_page_index: bool

Should the page index be read from parquet files, if present, to skip data pages

§enable_bloom_filter: bool

Should the bloom filter be read from parquet, if present, to skip row groups

§schema_adapter_factory: Arc<dyn SchemaAdapterFactory>

Schema adapter factory

§enable_row_group_stats_pruning: bool

Should row group pruning be applied

§coerce_int96: Option<TimeUnit>

Coerce INT96 timestamps to specific TimeUnit

§file_decryption_properties: Option<Arc<FileDecryptionProperties>>

Optional parquet FileDecryptionProperties

§expr_adapter_factory: Option<Arc<dyn PhysicalExprAdapterFactory>>

Rewrite expressions in the context of the file schema

§encryption_factory: Option<(Arc<dyn EncryptionFactory>, EncryptionFactoryOptions)>

Optional factory to create file decryption properties dynamically

§max_predicate_cache_size: Option<usize>

Maximum size of the predicate cache, in bytes. If none, uses the arrow-rs default.

Implementations§

Trait Implementations§

Source§

impl FileOpener for ParquetOpener

Source§

fn open(&self, partitioned_file: PartitionedFile) -> Result<FileOpenFuture>

Asynchronously open the specified file and return a stream of [RecordBatch]

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

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

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,