Class GlobalMetaData
java.lang.Object
org.apache.parquet.hadoop.metadata.GlobalMetaData
- All Implemented Interfaces:
Serializable
Merged metadata when reading from multiple files.
THis is to allow schema evolution
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.parquet.schema.MessageTypemerge()Will merge the metadata as if it was coming from a single file.merge(KeyValueMetadataMergeStrategy keyValueMetadataMergeStrategy) Will merge the metadata as if it was coming from a single file.toString()
-
Constructor Details
-
GlobalMetaData
public GlobalMetaData(org.apache.parquet.schema.MessageType schema, Map<String, Set<String>> keyValueMetaData, Set<String> createdBy) - Parameters:
schema- the union of the schemas for all the fileskeyValueMetaData- the merged app specific metadatacreatedBy- the description of the library that created the file- Throws:
NullPointerException- if schema or keyValueMetaData isnull
-
-
Method Details
-
getSchema
public org.apache.parquet.schema.MessageType getSchema()- Returns:
- the schema for the file
-
toString
-
getKeyValueMetaData
- Returns:
- meta data for extensions
-
getCreatedBy
- Returns:
- the description of the library that created the file
-
merge
Will merge the metadata as if it was coming from a single file. (for all part files written together this will always work) If there are conflicting values an exception will be thrownProvided for backward compatibility
- Returns:
- the merged version of this
-
merge
Will merge the metadata as if it was coming from a single file. (for all part files written together this will always work) If there are conflicting values an exception will be thrown- Returns:
- the merged version of this
-