public class HBaseBinaryRecordReader extends org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<Entry>>
| Constructor and Description |
|---|
HBaseBinaryRecordReader(org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.client.Result> reader,
byte[] edgestoreFamilyBytes) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
StaticBuffer |
getCurrentKey() |
Iterable<Entry> |
getCurrentValue() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext) |
boolean |
nextKeyValue() |
public HBaseBinaryRecordReader(org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.client.Result> reader,
byte[] edgestoreFamilyBytes)
public 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<StaticBuffer,Iterable<Entry>>IOExceptionInterruptedExceptionpublic boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<Entry>>IOExceptionInterruptedExceptionpublic StaticBuffer getCurrentKey() throws IOException, InterruptedException
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<Entry>>IOExceptionInterruptedExceptionpublic Iterable<Entry> getCurrentValue() throws IOException, InterruptedException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<Entry>>IOExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<Entry>>IOExceptionpublic float getProgress()
throws IOException,
InterruptedException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<Entry>>IOExceptionInterruptedExceptionCopyright © 2012–2020. All rights reserved.