Package org.apache.arrow.datafusion
Class ParquetOptions
java.lang.Object
org.apache.arrow.datafusion.ParquetOptions
Configures options specific to reading Parquet data
-
Method Summary
Modifier and TypeMethodDescriptionbooleanGet whether parquet data page level metadata (Page Index) statistics are usedGet the metadata size hintbooleanpruning()Get whether pruning is enabled, meaning reading row groups will be skipped based on metadatabooleanGet whether filter pushdown is enabled, so filters are applied during parquet decodingbooleanGet whether filter reordering is enabled to minimize evaluation costbooleanGet whether file metadata is skipped, to avoid schema conflictswithEnablePageIndex(boolean enabled) Set whether to use parquet data page level metadata (Page Index) statistics to reduce the number of rows decoded.withMetadataSizeHint(Optional<Long> metadataSizeHint) Set the metadata size hint, which is used to attempt to read the full metadata at once rather than needing one read to get the metadata size and then a second read for the metadata itself.withPruning(boolean enabled) Set whether pruning is enabled, meaning reading row groups will be skipped based on metadatawithPushdownFilters(boolean enabled) Set whether filter pushdown is enabled, so filters are applied during parquet decodingwithReorderFilters(boolean enabled) Set whether filter reordering is enabled to minimize evaluation costwithSkipMetadata(boolean enabled) Set whether file metadata is skipped, to avoid schema conflicts
-
Method Details
-
enablePageIndex
public boolean enablePageIndex()Get whether parquet data page level metadata (Page Index) statistics are used- Returns:
- whether using the page index is enabled
-
withEnablePageIndex
Set whether to use parquet data page level metadata (Page Index) statistics to reduce the number of rows decoded.- Parameters:
enabled- whether using the page index is enabled- Returns:
- the modified
ParquetOptionsinstance
-
pruning
public boolean pruning()Get whether pruning is enabled, meaning reading row groups will be skipped based on metadata- Returns:
- whether pruning is enabled
-
withPruning
Set whether pruning is enabled, meaning reading row groups will be skipped based on metadata- Parameters:
enabled- whether to enable pruning- Returns:
- the modified
ParquetOptionsinstance
-
skipMetadata
public boolean skipMetadata()Get whether file metadata is skipped, to avoid schema conflicts- Returns:
- whether metadata is skipped
-
withSkipMetadata
Set whether file metadata is skipped, to avoid schema conflicts- Parameters:
enabled- whether to skip metadata- Returns:
- the modified
ParquetOptionsinstance
-
metadataSizeHint
Get the metadata size hint- Returns:
- metadata size hint value
-
withMetadataSizeHint
Set the metadata size hint, which is used to attempt to read the full metadata at once rather than needing one read to get the metadata size and then a second read for the metadata itself.- Parameters:
metadataSizeHint- the metadata size hint- Returns:
- the modified
ParquetOptionsinstance
-
pushdownFilters
public boolean pushdownFilters()Get whether filter pushdown is enabled, so filters are applied during parquet decoding- Returns:
- whether filter pushdown is enabled
-
withPushdownFilters
Set whether filter pushdown is enabled, so filters are applied during parquet decoding- Parameters:
enabled- whether to pushdown filters- Returns:
- the modified
ParquetOptionsinstance
-
reorderFilters
public boolean reorderFilters()Get whether filter reordering is enabled to minimize evaluation cost- Returns:
- whether filter reordering is enabled
-
withReorderFilters
Set whether filter reordering is enabled to minimize evaluation cost- Parameters:
enabled- whether to reorder filters- Returns:
- the modified
ParquetOptionsinstance
-