Struct datafusion::datasource::file_format::parquet::ParquetFormat
source · pub struct ParquetFormat { /* private fields */ }
Expand description
The Apache Parquet FileFormat
implementation
Note it is recommended these are instead configured on the ConfigOptions
associated with the SessionState
instead of overridden on a format-basis
TODO: Deprecate and remove overrides https://github.com/apache/arrow-datafusion/issues/4349
Implementations§
source§impl ParquetFormat
impl ParquetFormat
sourcepub fn with_enable_pruning(self, enable: Option<bool>) -> Self
pub fn with_enable_pruning(self, enable: Option<bool>) -> Self
Activate statistics based row group level pruning
- If
None
, defaults to value onconfig_options
sourcepub fn enable_pruning(&self, config_options: &ConfigOptions) -> bool
pub fn enable_pruning(&self, config_options: &ConfigOptions) -> bool
Return true
if pruning is enabled
sourcepub fn with_metadata_size_hint(self, size_hint: Option<usize>) -> Self
pub fn with_metadata_size_hint(self, size_hint: Option<usize>) -> Self
Provide a hint to the size of the file metadata. If a hint is provided
the reader will try and fetch the last size_hint
bytes of the parquet file optimistically.
Without a hint, two read are required. One read to fetch the 8-byte parquet footer and then
another read to fetch the metadata length encoded in the footer.
- If
None
, defaults to value onconfig_options
sourcepub fn metadata_size_hint(
&self,
config_options: &ConfigOptions
) -> Option<usize>
pub fn metadata_size_hint( &self, config_options: &ConfigOptions ) -> Option<usize>
Return the metadata size hint if set
sourcepub fn with_skip_metadata(self, skip_metadata: Option<bool>) -> Self
pub fn with_skip_metadata(self, skip_metadata: Option<bool>) -> Self
Tell the parquet reader to skip any metadata that may be in the file Schema. This can help avoid schema conflicts due to metadata.
- If
None
, defaults to value onconfig_options
sourcepub fn skip_metadata(&self, config_options: &ConfigOptions) -> bool
pub fn skip_metadata(&self, config_options: &ConfigOptions) -> bool
Returns true
if schema metadata will be cleared prior to
schema merging.
Trait Implementations§
source§impl Debug for ParquetFormat
impl Debug for ParquetFormat
source§impl Default for ParquetFormat
impl Default for ParquetFormat
source§fn default() -> ParquetFormat
fn default() -> ParquetFormat
source§impl FileFormat for ParquetFormat
impl FileFormat for ParquetFormat
source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Any
so that it can be
downcast to a specific implementation.