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 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 configuration
      keyValueMetadata - extra metadata from file footers
      fileSchema - the merged schema from the files
    • InitContext

      public InitContext(org.apache.parquet.conf.ParquetConfiguration configuration, Map<String,Set<String>> keyValueMetadata, org.apache.parquet.schema.MessageType fileSchema)
  • Method Details

    • 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

      @Deprecated public org.apache.hadoop.conf.Configuration getConfiguration()
      Deprecated.
      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

      public Map<String,Set<String>> getKeyValueMetadata()
      each key is associated with the list of distinct values found in footers
      Returns:
      the merged metadata from the footer of the file