Package org.apache.parquet.hadoop.api
Class InitContext
- java.lang.Object
-
- org.apache.parquet.hadoop.api.InitContext
-
public class InitContext extends Object
Context passed to ReadSupport when initializing for read
-
-
Constructor Summary
Constructors Constructor Description InitContext(org.apache.hadoop.conf.Configuration configuration, Map<String,Set<String>> keyValueMetadata, org.apache.parquet.schema.MessageType fileSchema)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.hadoop.conf.ConfigurationgetConfiguration()org.apache.parquet.schema.MessageTypegetFileSchema()this is the union of all the schemas when reading multiple files.Map<String,Set<String>>getKeyValueMetadata()each key is associated with the list of distinct values found in footersMap<String,String>getMergedKeyValueMetaData()Deprecated.
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
getMergedKeyValueMetaData
@Deprecated public Map<String,String> 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
public org.apache.hadoop.conf.Configuration getConfiguration()
- Returns:
- the 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
-
-