Class GroupReadSupport

    • Constructor Detail

      • GroupReadSupport

        public GroupReadSupport()
    • Method Detail

      • init

        public ReadSupport.ReadContext init​(org.apache.hadoop.conf.Configuration configuration,
                                            Map<String,​String> keyValueMetaData,
                                            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<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
      • prepareForRead

        public RecordMaterializer<Group> prepareForRead​(org.apache.hadoop.conf.Configuration configuration,
                                                        Map<String,​String> keyValueMetaData,
                                                        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<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