protected abstract static class InputFormatBase.RecordReaderBase<K,V>
extends org.apache.hadoop.mapreduce.RecordReader<K,V>
Modifier and Type | Field and Description |
---|---|
protected K |
currentK |
protected Key |
currentKey |
protected V |
currentV |
protected Value |
currentValue |
protected long |
numKeysRead |
protected Iterator<Map.Entry<Key,Value>> |
scannerIterator |
protected InputFormatBase.RangeInputSplit |
split |
Modifier | Constructor and Description |
---|---|
protected |
InputFormatBase.RecordReaderBase() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
K |
getCurrentKey() |
V |
getCurrentValue() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext attempt)
Initialize a scanner over the given input split using this task attempt configuration.
|
protected void |
setupIterators(org.apache.hadoop.conf.Configuration conf,
Scanner scanner)
Apply the configured iterators from the configuration to the scanner.
|
protected void |
setupIterators(org.apache.hadoop.mapreduce.TaskAttemptContext attempt,
Scanner scanner)
Deprecated.
Use
setupIterators(Configuration,Scanner) instead |
protected void |
setupMaxVersions(org.apache.hadoop.conf.Configuration conf,
Scanner scanner)
If maxVersions has been set, configure a
VersioningIterator at priority 0 for this scanner. |
protected void |
setupMaxVersions(org.apache.hadoop.mapreduce.TaskAttemptContext attempt,
Scanner scanner)
Deprecated.
Use
setupMaxVersions(Configuration,Scanner) instead |
protected boolean |
setupRegex(org.apache.hadoop.mapreduce.TaskAttemptContext attempt,
Scanner scanner)
Deprecated.
since 1.4, configure
RegExFilter instead. |
protected long numKeysRead
protected InputFormatBase.RangeInputSplit split
protected K currentK
protected V currentV
protected Key currentKey
protected Value currentValue
protected boolean setupRegex(org.apache.hadoop.mapreduce.TaskAttemptContext attempt, Scanner scanner) throws AccumuloException
RegExFilter
instead.AccumuloException
protected void setupIterators(org.apache.hadoop.mapreduce.TaskAttemptContext attempt, Scanner scanner) throws AccumuloException
setupIterators(Configuration,Scanner)
insteadAccumuloException
protected void setupIterators(org.apache.hadoop.conf.Configuration conf, Scanner scanner) throws AccumuloException
conf
- the Hadoop configuration objectscanner
- the scanner to configureAccumuloException
protected void setupMaxVersions(org.apache.hadoop.mapreduce.TaskAttemptContext attempt, Scanner scanner)
setupMaxVersions(Configuration,Scanner)
insteadprotected void setupMaxVersions(org.apache.hadoop.conf.Configuration conf, Scanner scanner)
VersioningIterator
at priority 0 for this scanner.conf
- the Hadoop configuration objectscanner
- the scanner to configurepublic 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() throws IOException
getProgress
in class org.apache.hadoop.mapreduce.RecordReader<K,V>
IOException
public K getCurrentKey() throws IOException, InterruptedException
getCurrentKey
in class org.apache.hadoop.mapreduce.RecordReader<K,V>
IOException
InterruptedException
public V getCurrentValue() throws IOException, InterruptedException
getCurrentValue
in class org.apache.hadoop.mapreduce.RecordReader<K,V>
IOException
InterruptedException
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.