public class AvroFileFormat extends FileFormat
FileFormat.| Modifier and Type | Field and Description |
|---|---|
static String |
IDENTIFIER |
formatIdentifier| Constructor and Description |
|---|
AvroFileFormat(FileFormatFactory.FormatContext context) |
| 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. |
void |
validateDataFields(RowType rowType)
Validate data field type supported or not.
|
createReaderFactory, fromIdentifier, fromIdentifier, getFormatIdentifier, getIdentifierPrefixOptionspublic static final String IDENTIFIER
public AvroFileFormat(FileFormatFactory.FormatContext context)
public FormatReaderFactory createReaderFactory(RowType projectedRowType, @Nullable List<Predicate> filters)
FileFormatFormatReaderFactory from the type, with projection pushed down.createReaderFactory in class FileFormatprojectedRowType - Type with projection.filters - A list of filters in conjunctive form for filtering on a best-effort basis.public FormatWriterFactory createWriterFactory(RowType type)
FileFormatFormatWriterFactory from the type.createWriterFactory in class FileFormatpublic Optional<SimpleStatsExtractor> createStatsExtractor(RowType type, SimpleColStatsCollector.Factory[] statsCollectors)
createStatsExtractor in class FileFormatpublic void validateDataFields(RowType rowType)
FileFormatvalidateDataFields in class FileFormatCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.