Class GuaguaSequenceAsBinaryRecordReader

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

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

    Copy some code from SequenceFileAsBinaryInputFormat but to support GuaguaRecordReader 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 GuaguaSequenceAsBinaryRecordReader(fileSplit));
     
    • Constructor Detail

      • GuaguaSequenceAsBinaryRecordReader

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

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

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