Class DelegatingReadSupport<T>

java.lang.Object
org.apache.parquet.hadoop.api.ReadSupport<T>
org.apache.parquet.hadoop.api.DelegatingReadSupport<T>
Type Parameters:
T - the Java class of objects created by this ReadSupport

public class DelegatingReadSupport<T> extends ReadSupport<T>
Helps composing read supports
  • Constructor Details

    • DelegatingReadSupport

      public DelegatingReadSupport(ReadSupport<T> delegate)
  • Method Details

    • init

      public ReadSupport.ReadContext init(InitContext context)
      Description copied from class: ReadSupport
      called in InputFormat.getSplits(org.apache.hadoop.mapreduce.JobContext) in the front end
      Overrides:
      init in class ReadSupport<T>
      Parameters:
      context - the initialisation context
      Returns:
      the readContext that defines how to read the file
    • prepareForRead

      public org.apache.parquet.io.api.RecordMaterializer<T> prepareForRead(org.apache.hadoop.conf.Configuration configuration, Map<String,String> keyValueMetaData, org.apache.parquet.schema.MessageType fileSchema, ReadSupport.ReadContext readContext)
      Description copied from class: ReadSupport
      called in RecordReader.initialize(org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext) in the back end the returned RecordMaterializer will materialize the records and add them to the destination
      Specified by:
      prepareForRead in class ReadSupport<T>
      Parameters:
      configuration - the job configuration
      keyValueMetaData - the app specific metadata from the file
      fileSchema - the schema of the file
      readContext - returned by the init method
      Returns:
      the recordMaterializer that will materialize the records
    • prepareForRead

      public org.apache.parquet.io.api.RecordMaterializer<T> prepareForRead(org.apache.parquet.conf.ParquetConfiguration configuration, Map<String,String> keyValueMetaData, org.apache.parquet.schema.MessageType fileSchema, ReadSupport.ReadContext readContext)
      Description copied from class: ReadSupport
      called in RecordReader.initialize(org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext) in the back end the returned RecordMaterializer will materialize the records and add them to the destination
      Overrides:
      prepareForRead in class ReadSupport<T>
      Parameters:
      configuration - the configuration
      keyValueMetaData - the app specific metadata from the file
      fileSchema - the schema of the file
      readContext - returned by the init method
      Returns:
      the recordMaterializer that will materialize the records
    • toString

      public String toString()
      Overrides:
      toString in class Object