Class HFileInputFormat.HFileRecordReader
java.lang.Object
org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,Cell>
org.apache.hadoop.hbase.mapreduce.HFileInputFormat.HFileRecordReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- HFileInputFormat
private static class HFileInputFormat.HFileRecordReader
extends org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,Cell>
Record reader for HFiles.
-
Field Summary
Modifier and TypeFieldDescriptionprivate OptionalLong
protected org.apache.hadoop.conf.Configuration
private long
private HFile.Reader
private HFileScanner
private boolean
private Cell
A private cache of the key value so it doesn't need to be loaded twice from the scanner. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
org.apache.hadoop.io.NullWritable
float
void
initialize
(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) boolean
-
Field Details
-
in
-
conf
-
scanner
-
value
A private cache of the key value so it doesn't need to be loaded twice from the scanner. -
count
-
seeked
-
bulkloadSeqId
-
-
Constructor Details
-
HFileRecordReader
private HFileRecordReader()
-
-
Method Details
-
initialize
public void initialize(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException - Specified by:
initialize
in classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,
Cell> - Throws:
IOException
InterruptedException
-
nextKeyValue
- Specified by:
nextKeyValue
in classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,
Cell> - Throws:
IOException
InterruptedException
-
getCurrentKey
- Specified by:
getCurrentKey
in classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,
Cell> - Throws:
IOException
InterruptedException
-
getCurrentValue
- Specified by:
getCurrentValue
in classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,
Cell> - Throws:
IOException
InterruptedException
-
getProgress
- Specified by:
getProgress
in classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,
Cell> - Throws:
IOException
InterruptedException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,
Cell> - Throws:
IOException
-