Package org.apache.parquet.hadoop.api
Class InitContext
java.lang.Object
org.apache.parquet.hadoop.api.InitContext
Context passed to ReadSupport when initializing for read
-
Constructor Summary
ConstructorsConstructorDescriptionInitContext(org.apache.hadoop.conf.Configuration configuration, Map<String, Set<String>> keyValueMetadata, org.apache.parquet.schema.MessageType fileSchema) InitContext(org.apache.parquet.conf.ParquetConfiguration configuration, Map<String, Set<String>> keyValueMetadata, org.apache.parquet.schema.MessageType fileSchema) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.conf.ConfigurationDeprecated.org.apache.parquet.schema.MessageTypethis is the union of all the schemas when reading multiple files.each key is associated with the list of distinct values found in footersDeprecated.org.apache.parquet.conf.ParquetConfiguration
-
Constructor Details
-
InitContext
public InitContext(org.apache.hadoop.conf.Configuration configuration, Map<String, Set<String>> keyValueMetadata, org.apache.parquet.schema.MessageType fileSchema) - Parameters:
configuration- the hadoop configurationkeyValueMetadata- extra metadata from file footersfileSchema- the merged schema from the files
-
InitContext
-
-
Method Details
-
getMergedKeyValueMetaData
Deprecated.If there is a conflicting value when reading from multiple files, an exception will be thrown- Returns:
- the merged key values metadata form the file footers
-
getConfiguration
Deprecated.UsegetParquetConfiguration()instead- Returns:
- the configuration for this job
-
getParquetConfiguration
public org.apache.parquet.conf.ParquetConfiguration getParquetConfiguration()- Returns:
- the Parquet configuration for this job
-
getFileSchema
public org.apache.parquet.schema.MessageType getFileSchema()this is the union of all the schemas when reading multiple files.- Returns:
- the schema of the files being read
-
getKeyValueMetadata
each key is associated with the list of distinct values found in footers- Returns:
- the merged metadata from the footer of the file
-
getParquetConfiguration()instead