private static class HFileInputFormat.HFileRecordReader extends org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,Cell>
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
private long |
count |
private HFile.Reader |
in |
private HFileScanner |
scanner |
private boolean |
seeked |
private Cell |
value
A private cache of the key value so it doesn't need to be loaded twice from the scanner.
|
Modifier | Constructor and Description |
---|---|
private |
HFileRecordReader() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.hadoop.io.NullWritable |
getCurrentKey() |
Cell |
getCurrentValue() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
boolean |
nextKeyValue() |
private HFile.Reader in
protected org.apache.hadoop.conf.Configuration conf
private HFileScanner scanner
private Cell value
private long count
private boolean seeked
private HFileRecordReader()
public void initialize(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
initialize
in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,Cell>
IOException
InterruptedException
public boolean nextKeyValue() throws IOException, InterruptedException
nextKeyValue
in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,Cell>
IOException
InterruptedException
public org.apache.hadoop.io.NullWritable getCurrentKey() throws IOException, InterruptedException
getCurrentKey
in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,Cell>
IOException
InterruptedException
public Cell getCurrentValue() throws IOException, InterruptedException
getCurrentValue
in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,Cell>
IOException
InterruptedException
public float getProgress() throws IOException, InterruptedException
getProgress
in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,Cell>
IOException
InterruptedException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,Cell>
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.