Class ParquetMetadata
- java.lang.Object
-
- org.apache.parquet.hadoop.metadata.ParquetMetadata
-
public class ParquetMetadata extends Object
Meta Data block stored in the footer of the file contains file level (Codec, Schema, ...) and block level (location, columns, record count, ...) meta data
-
-
Constructor Summary
Constructors Constructor Description ParquetMetadata(FileMetaData fileMetaData, List<BlockMetaData> blocks)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParquetMetadata
fromJSON(String json)
List<BlockMetaData>
getBlocks()
FileMetaData
getFileMetaData()
static String
toJSON(ParquetMetadata parquetMetaData)
static String
toPrettyJSON(ParquetMetadata parquetMetaData)
String
toString()
-
-
-
Constructor Detail
-
ParquetMetadata
public ParquetMetadata(FileMetaData fileMetaData, List<BlockMetaData> blocks)
- Parameters:
fileMetaData
- file level metadatablocks
- block level metadata
-
-
Method Detail
-
toJSON
public static String toJSON(ParquetMetadata parquetMetaData)
- Parameters:
parquetMetaData
- an instance of parquet metadata to convert- Returns:
- the json representation
-
toPrettyJSON
public static String toPrettyJSON(ParquetMetadata parquetMetaData)
- Parameters:
parquetMetaData
- an instance of parquet metadata to convert- Returns:
- the pretty printed json representation
-
fromJSON
public static ParquetMetadata fromJSON(String json)
- Parameters:
json
- the json representation- Returns:
- the parsed object
-
getBlocks
public List<BlockMetaData> getBlocks()
- Returns:
- block level metadata
-
getFileMetaData
public FileMetaData getFileMetaData()
- Returns:
- file level meta data
-
-