public abstract class AccumuloRecordReader<K,V> extends Object implements org.apache.hadoop.mapred.RecordReader<K,V>
AccumuloRecordReader
Modifier and Type | Field and Description |
---|---|
protected AccumuloClient |
client |
protected Key |
currentKey |
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() |
long |
getPos() |
float |
getProgress() |
static org.apache.hadoop.mapred.InputSplit[] |
getSplits(org.apache.hadoop.mapred.JobConf job,
Class<?> callingClass)
Gets the splits of the tables that have been set on the job by reading the metadata table for
the specified ranges.
|
void |
initialize(org.apache.hadoop.mapred.InputSplit inSplit,
org.apache.hadoop.mapred.JobConf job)
Initialize a scanner over the given input split using this task attempt configuration.
|
protected long numKeysRead
protected AccumuloClient client
protected RangeInputSplit split
protected ScannerBase scannerBase
protected Key currentKey
public AccumuloRecordReader(Class<?> callingClass)
public void initialize(org.apache.hadoop.mapred.InputSplit inSplit, org.apache.hadoop.mapred.JobConf job) throws IOException
IOException
public void close()
public long getPos()
public float getProgress()
public static org.apache.hadoop.mapred.InputSplit[] getSplits(org.apache.hadoop.mapred.JobConf job, Class<?> callingClass) throws IOException
IOException
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.