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>>
IOException
InterruptedException
public boolean nextKeyValue() throws IOException, InterruptedException
nextKeyValue
in class org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<Entry>>
IOException
InterruptedException
public StaticBuffer getCurrentKey() throws IOException, InterruptedException
getCurrentKey
in class org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<Entry>>
IOException
InterruptedException
public Iterable<Entry> getCurrentValue() throws IOException, InterruptedException
getCurrentValue
in class org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<Entry>>
IOException
InterruptedException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<Entry>>
IOException
public float getProgress() throws IOException, InterruptedException
getProgress
in class org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<Entry>>
IOException
InterruptedException
Copyright © 2012–2020. All rights reserved.