public class ParquetUtil extends Object
Constructor and Description |
---|
ParquetUtil() |
Modifier and Type | Method and Description |
---|---|
static Pair<Map<String,org.apache.parquet.column.statistics.Statistics<?>>,SimpleStatsExtractor.FileInfo> |
extractColumnStats(FileIO fileIO,
Path path)
Extract stats from specified Parquet files path.
|
static ParquetFileReader |
getParquetReader(FileIO fileIO,
Path path)
Generate
ParquetFileReader instance to read the Parquet files at the given path. |
public static Pair<Map<String,org.apache.parquet.column.statistics.Statistics<?>>,SimpleStatsExtractor.FileInfo> extractColumnStats(FileIO fileIO, Path path) throws IOException
path
- the path of parquet files to be readIOException
public static ParquetFileReader getParquetReader(FileIO fileIO, Path path) throws IOException
ParquetFileReader
instance to read the Parquet files at the given path.path
- the path of parquet files to be readIOException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.