Class GroupReadSupport

java.lang.Object
org.apache.parquet.hadoop.api.ReadSupport<org.apache.parquet.example.data.Group>
org.apache.parquet.hadoop.example.GroupReadSupport

public class GroupReadSupport extends ReadSupport<org.apache.parquet.example.data.Group>
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.parquet.hadoop.api.ReadSupport

    ReadSupport.ReadContext
  • Field Summary

    Fields inherited from class org.apache.parquet.hadoop.api.ReadSupport

    PARQUET_READ_SCHEMA
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    init(org.apache.hadoop.conf.Configuration configuration, Map<String,String> keyValueMetaData, org.apache.parquet.schema.MessageType fileSchema)
    called in InputFormat.getSplits(org.apache.hadoop.mapreduce.JobContext) in the front end
    init(org.apache.parquet.conf.ParquetConfiguration configuration, Map<String,String> keyValueMetaData, org.apache.parquet.schema.MessageType fileSchema)
    called in InputFormat.getSplits(org.apache.hadoop.mapreduce.JobContext) in the front end
    org.apache.parquet.io.api.RecordMaterializer<org.apache.parquet.example.data.Group>
    prepareForRead(org.apache.hadoop.conf.Configuration configuration, Map<String,String> keyValueMetaData, org.apache.parquet.schema.MessageType fileSchema, ReadSupport.ReadContext readContext)
    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
    org.apache.parquet.io.api.RecordMaterializer<org.apache.parquet.example.data.Group>
    prepareForRead(org.apache.parquet.conf.ParquetConfiguration configuration, Map<String,String> keyValueMetaData, org.apache.parquet.schema.MessageType fileSchema, ReadSupport.ReadContext readContext)
    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

    Methods inherited from class org.apache.parquet.hadoop.api.ReadSupport

    getSchemaForRead, getSchemaForRead, init

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GroupReadSupport

      public GroupReadSupport()
  • Method Details

    • init

      public ReadSupport.ReadContext init(org.apache.hadoop.conf.Configuration configuration, Map<String,String> keyValueMetaData, org.apache.parquet.schema.MessageType fileSchema)
      Description copied from class: ReadSupport
      called in InputFormat.getSplits(org.apache.hadoop.mapreduce.JobContext) in the front end
      Overrides:
      init in class ReadSupport<org.apache.parquet.example.data.Group>
      Parameters:
      configuration - the job configuration
      keyValueMetaData - the app specific metadata from the file
      fileSchema - the schema of the file
      Returns:
      the readContext that defines how to read the file
    • init

      public ReadSupport.ReadContext init(org.apache.parquet.conf.ParquetConfiguration configuration, Map<String,String> keyValueMetaData, org.apache.parquet.schema.MessageType fileSchema)
      Description copied from class: ReadSupport
      called in InputFormat.getSplits(org.apache.hadoop.mapreduce.JobContext) in the front end
      Overrides:
      init in class ReadSupport<org.apache.parquet.example.data.Group>
      Parameters:
      configuration - the configuration
      keyValueMetaData - the app specific metadata from the file
      fileSchema - the schema of the file
      Returns:
      the readContext that defines how to read the file
    • prepareForRead

      public org.apache.parquet.io.api.RecordMaterializer<org.apache.parquet.example.data.Group> 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<org.apache.parquet.example.data.Group>
      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<org.apache.parquet.example.data.Group> 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<org.apache.parquet.example.data.Group>
      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