Class ParquetStatsReader
Object
io.delta.kernel.defaults.internal.parquet.ParquetStatsReader
Helper class to read statistics from Parquet files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.delta.kernel.statistics.DataFileStatisticsreadDataFileStatistics(InputFile kernelInputFile, io.delta.kernel.types.StructType dataSchema, List<io.delta.kernel.expressions.Column> statsColumns) Read the statistics for the given Parquet file.
-
Constructor Details
-
ParquetStatsReader
public ParquetStatsReader()
-
-
Method Details
-
readDataFileStatistics
public static io.delta.kernel.statistics.DataFileStatistics readDataFileStatistics(InputFile kernelInputFile, io.delta.kernel.types.StructType dataSchema, List<io.delta.kernel.expressions.Column> statsColumns) throws IOException Read the statistics for the given Parquet file.- Parameters:
kernelInputFile-InputFilerepresenting the Parquet file.dataSchema- The schema of the Parquet file. Type info is used to decode statistics.statsColumns- The columns for which statistics should be collected and returned.- Returns:
- File/column level statistics as
DataFileStatisticsinstance. - Throws:
IOException
-