public class WholeFileRecordReader
extends org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.BytesWritable>
| Constructor and Description |
|---|
WholeFileRecordReader(org.apache.hadoop.mapreduce.lib.input.CombineFileSplit fileSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext,
Integer idx) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.hadoop.io.IntWritable |
getCurrentKey() |
org.apache.hadoop.io.BytesWritable |
getCurrentValue() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext) |
boolean |
nextKeyValue() |
public WholeFileRecordReader(org.apache.hadoop.mapreduce.lib.input.CombineFileSplit fileSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext,
Integer idx)
throws IOException
IOExceptionpublic org.apache.hadoop.io.IntWritable getCurrentKey()
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.BytesWritable>public org.apache.hadoop.io.BytesWritable getCurrentValue()
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.BytesWritable>public float getProgress()
throws IOException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.BytesWritable>IOExceptionpublic void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext)
throws IOException,
InterruptedException
initialize in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.BytesWritable>IOExceptionInterruptedExceptionpublic boolean nextKeyValue()
throws IOException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.BytesWritable>IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.BytesWritable>IOExceptionCopyright © 2008–2013 The Apache Software Foundation. All rights reserved.