public class ParquetFileFormat extends FileFormat
FileFormat
.formatIdentifier
Constructor and Description |
---|
ParquetFileFormat(FileFormatFactory.FormatContext formatContext) |
Modifier and Type | Method and Description |
---|---|
FormatReaderFactory |
createReaderFactory(RowType projectedRowType,
List<Predicate> filters)
Create a
FormatReaderFactory from the type, with projection pushed down. |
Optional<SimpleStatsExtractor> |
createStatsExtractor(RowType type,
SimpleColStatsCollector.Factory[] statsCollectors) |
FormatWriterFactory |
createWriterFactory(RowType type)
Create a
FormatWriterFactory from the type. |
static Options |
getParquetConfiguration(FileFormatFactory.FormatContext context) |
void |
validateDataFields(RowType rowType)
Validate data field type supported or not.
|
createReaderFactory, fromIdentifier, fromIdentifier, getFileFormat, getFormatIdentifier
public ParquetFileFormat(FileFormatFactory.FormatContext formatContext)
public FormatReaderFactory createReaderFactory(RowType projectedRowType, List<Predicate> filters)
FileFormat
FormatReaderFactory
from the type, with projection pushed down.createReaderFactory
in class FileFormat
projectedRowType
- Type with projection.filters
- A list of filters in conjunctive form for filtering on a best-effort basis.public FormatWriterFactory createWriterFactory(RowType type)
FileFormat
FormatWriterFactory
from the type.createWriterFactory
in class FileFormat
public void validateDataFields(RowType rowType)
FileFormat
validateDataFields
in class FileFormat
public Optional<SimpleStatsExtractor> createStatsExtractor(RowType type, SimpleColStatsCollector.Factory[] statsCollectors)
createStatsExtractor
in class FileFormat
public static Options getParquetConfiguration(FileFormatFactory.FormatContext context)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.