コード例 #1
0
    @Override
    public boolean nextKeyValue() throws IOException, InterruptedException {
      if (!reader.nextKeyValue()) {
        return false;
      }
      key = new Text();
      value = new jBLASArrayWritable();

      key = reader.getCurrentKey();
      value = reader.getCurrentValue();
      return true;
    }
コード例 #2
0
    @Override
    public void initialize(InputSplit split, TaskAttemptContext context)
        throws IOException, InterruptedException {
      reader = new SequenceFileRecordReader<Text, jBLASArrayWritable>();
      key = new Text();
      value = new jBLASArrayWritable();

      reader.initialize(split, context);
    }
コード例 #3
0
 @Override
 public float getProgress() throws IOException, InterruptedException {
   return reader.getProgress();
 }
コード例 #4
0
 @Override
 public void close() throws IOException {
   reader.close();
 }