public abstract class AccumuloRecordReader<K,V>
extends org.apache.hadoop.mapreduce.RecordReader<K,V>
Modifier and Type | Field and Description |
---|---|
protected AccumuloClient |
client |
protected K |
currentK
The Key that should be returned to the client
|
protected Key |
currentKey
The Key that is used to determine progress in the current InputSplit.
|
protected V |
currentV
The Value that should be return to the client
|
protected long |
numKeysRead |
protected ScannerBase |
scannerBase |
protected Iterator<Map.Entry<Key,Value>> |
scannerIterator |
protected RangeInputSplit |
split |
Constructor and Description |
---|
AccumuloRecordReader(Class<?> callingClass) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
K |
getCurrentKey() |
V |
getCurrentValue() |
float |
getProgress() |
static List<org.apache.hadoop.mapreduce.InputSplit> |
getSplits(org.apache.hadoop.mapreduce.JobContext context,
Class<?> callingClass) |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext attempt) |
protected long numKeysRead
protected AccumuloClient client
protected ScannerBase scannerBase
protected RangeInputSplit split
protected K currentK
protected V currentV
protected Key currentKey
public AccumuloRecordReader(Class<?> callingClass)
public void initialize(org.apache.hadoop.mapreduce.InputSplit inSplit, org.apache.hadoop.mapreduce.TaskAttemptContext attempt) throws IOException
initialize
in class org.apache.hadoop.mapreduce.RecordReader<K,V>
IOException
public void close()
public float getProgress()
public K getCurrentKey()
public V getCurrentValue()
public static List<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext context, Class<?> callingClass) throws IOException
IOException
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.