Class GuaguaSequenceAsTextRecordReader

  • All Implemented Interfaces:
    ml.shifu.guagua.io.GuaguaRecordReader<GuaguaWritableAdapter<org.apache.hadoop.io.Text>,​GuaguaWritableAdapter<org.apache.hadoop.io.Text>>

    @Deprecated
    public class GuaguaSequenceAsTextRecordReader
    extends GuaguaSequenceRecordReader<org.apache.hadoop.io.Text,​org.apache.hadoop.io.Text>
    A reader read HDFS sequence file key by key. The sequence key and value types are both BytesWritable.

    Copy some code from SequenceFileAsTextRecordReader but to support {@link ml.shifu.guagua.io\u3002GuaguaRecordReader} interface.

    If use default constructor, user should also call GuaguaSequenceRecordReader.initialize(GuaguaFileSplit) like in below:

     this.setRecordReader(new GuaguaSequenceAsBinaryRecordReader());
     this.getRecordReader().initialize(fileSplit);
     
    or directly use other constructors:
     this.setRecordReader(new GuaguaSequenceAsTextRecordReader(fileSplit));
     
    • Constructor Detail

      • GuaguaSequenceAsTextRecordReader

        public GuaguaSequenceAsTextRecordReader()
                                         throws IOException
        Deprecated.
        Throws:
        IOException
      • GuaguaSequenceAsTextRecordReader

        public GuaguaSequenceAsTextRecordReader​(ml.shifu.guagua.io.GuaguaFileSplit split)
                                         throws IOException
        Deprecated.
        Throws:
        IOException
      • GuaguaSequenceAsTextRecordReader

        public GuaguaSequenceAsTextRecordReader​(org.apache.hadoop.conf.Configuration conf,
                                                ml.shifu.guagua.io.GuaguaFileSplit split)
                                         throws IOException
        Deprecated.
        Throws:
        IOException