Class ReadSupport.ReadContext

java.lang.Object
org.apache.parquet.hadoop.api.ReadSupport.ReadContext
Enclosing class:
ReadSupport<T>

public static final class ReadSupport.ReadContext extends Object
information to read the file
  • Constructor Details

    • ReadContext

      public ReadContext(org.apache.parquet.schema.MessageType requestedSchema)
      Parameters:
      requestedSchema - the schema requested by the user. Can not be null.
    • ReadContext

      public ReadContext(org.apache.parquet.schema.MessageType requestedSchema, Map<String,String> readSupportMetadata)
      Parameters:
      requestedSchema - the schema requested by the user. Can not be null.
      readSupportMetadata - metadata specific to the ReadSupport implementation. Will be available in the prepareForRead phase.
  • Method Details

    • getRequestedSchema

      public org.apache.parquet.schema.MessageType getRequestedSchema()
      Returns:
      the schema of the file
    • getReadSupportMetadata

      public Map<String,String> getReadSupportMetadata()
      Returns:
      metadata specific to the ReadSupport implementation