Example usage for org.apache.hadoop.mapred SequenceFileAsTextRecordReader SequenceFileAsTextRecordReader

List of usage examples for org.apache.hadoop.mapred SequenceFileAsTextRecordReader SequenceFileAsTextRecordReader

Introduction

In this page you can find the example usage for org.apache.hadoop.mapred SequenceFileAsTextRecordReader SequenceFileAsTextRecordReader.

Prototype

public SequenceFileAsTextRecordReader(Configuration conf, FileSplit split) throws IOException 

Source Link

Usage

From source file:ml.shifu.guagua.hadoop.io.GuaguaSequenceAsTextRecordReader.java

License:Apache License

@Override
public void initialize(GuaguaFileSplit split) throws IOException {
    FileSplit fileSplit = new FileSplit(new Path(split.getPath()), split.getOffset(), split.getLength(),
            (String[]) null);/*  w w w  . j a  v  a  2  s .  co m*/
    this.sequenceReader = new SequenceFileAsTextRecordReader(conf, fileSplit);
}