@VisibleForTesting public static class ParquetFileFormatFactory.ParquetBulkDecodingFormat extends Object implements ProjectableDecodingFormat<BulkFormat<RowData,FileSourceSplit>>, BulkDecodingFormat<RowData>, FileBasedStatisticsReportableInputFormat
FileBasedStatisticsReportableInputFormat
.Constructor and Description |
---|
ParquetBulkDecodingFormat(ReadableConfig formatOptions) |
Modifier and Type | Method and Description |
---|---|
BulkFormat<RowData,FileSourceSplit> |
createRuntimeDecoder(DynamicTableSource.Context sourceContext,
DataType producedDataType,
int[][] projections)
Creates runtime decoder implementation that is configured to produce data of type
Projection.of(projections).project(physicalDataType) . |
ChangelogMode |
getChangelogMode()
Returns the set of changes that a connector (and transitively the planner) can expect during
runtime.
|
TableStats |
reportStatistics(List<Path> files,
DataType producedDataType)
Returns the estimated statistics of this input format.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createRuntimeDecoder, supportsNestedProjection
applyFilters
applyReadableMetadata, listReadableMetadata
public ParquetBulkDecodingFormat(ReadableConfig formatOptions)
public BulkFormat<RowData,FileSourceSplit> createRuntimeDecoder(DynamicTableSource.Context sourceContext, DataType producedDataType, int[][] projections)
ProjectableDecodingFormat
Projection.of(projections).project(physicalDataType)
. For more details on the usage, check
DecodingFormat
documentation.createRuntimeDecoder
in interface ProjectableDecodingFormat<BulkFormat<RowData,FileSourceSplit>>
sourceContext
- the context provides several utilities required to instantiate the runtime
decoder implementation of the formatproducedDataType
- For more details check DecodingFormat
projections
- the projections array. The array represents the mapping of the fields of
the original DataType
, including nested rows. For example, [[0, 2, 1],
...]
specifies to include the 2nd field of the 3rd field of the 1st field in the
top-level row. It's guaranteed that this array won't contain nested projections if ProjectableDecodingFormat.supportsNestedProjection()
returns false
. For more details, check Projection
as well.DecodingFormat
public ChangelogMode getChangelogMode()
Format
getChangelogMode
in interface Format
public TableStats reportStatistics(List<Path> files, DataType producedDataType)
FileBasedStatisticsReportableInputFormat
reportStatistics
in interface FileBasedStatisticsReportableInputFormat
files
- The files to be estimated.producedDataType
- the final output type of the format.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.