org.apache.accumulo.core.client.mapreduce
Class InputFormatBase.RecordReaderBase<K,V>

java.lang.Object
  extended by org.apache.hadoop.mapreduce.RecordReader<K,V>
      extended by org.apache.accumulo.core.client.mapreduce.InputFormatBase.RecordReaderBase<K,V>
All Implemented Interfaces:
Closeable
Enclosing class:
InputFormatBase<K,V>

protected abstract static class InputFormatBase.RecordReaderBase<K,V>
extends org.apache.hadoop.mapreduce.RecordReader<K,V>


Field Summary
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
           
 
Constructor Summary
protected InputFormatBase.RecordReaderBase()
           
 
Method Summary
 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.
 
Methods inherited from class org.apache.hadoop.mapreduce.RecordReader
nextKeyValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numKeysRead

protected long numKeysRead

scannerIterator

protected Iterator<Map.Entry<Key,Value>> scannerIterator

split

protected InputFormatBase.RangeInputSplit split

currentK

protected K currentK

currentV

protected V currentV

currentKey

protected Key currentKey

currentValue

protected Value currentValue
Constructor Detail

InputFormatBase.RecordReaderBase

protected InputFormatBase.RecordReaderBase()
Method Detail

setupRegex

protected boolean setupRegex(org.apache.hadoop.mapreduce.TaskAttemptContext attempt,
                             Scanner scanner)
                      throws AccumuloException
Deprecated. since 1.4, configure RegExFilter instead.

Throws:
AccumuloException

setupIterators

protected void setupIterators(org.apache.hadoop.mapreduce.TaskAttemptContext attempt,
                              Scanner scanner)
                       throws AccumuloException
Deprecated. Use setupIterators(Configuration,Scanner) instead

Throws:
AccumuloException

setupIterators

protected void setupIterators(org.apache.hadoop.conf.Configuration conf,
                              Scanner scanner)
                       throws AccumuloException
Apply the configured iterators from the configuration to the scanner.

Parameters:
conf - the Hadoop configuration object
scanner - the scanner to configure
Throws:
AccumuloException

setupMaxVersions

protected void setupMaxVersions(org.apache.hadoop.mapreduce.TaskAttemptContext attempt,
                                Scanner scanner)
Deprecated. Use setupMaxVersions(Configuration,Scanner) instead


setupMaxVersions

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.

Parameters:
conf - the Hadoop configuration object
scanner - the scanner to configure

initialize

public void initialize(org.apache.hadoop.mapreduce.InputSplit inSplit,
                       org.apache.hadoop.mapreduce.TaskAttemptContext attempt)
                throws IOException
Initialize a scanner over the given input split using this task attempt configuration.

Specified by:
initialize in class org.apache.hadoop.mapreduce.RecordReader<K,V>
Throws:
IOException

close

public void close()
Specified by:
close in interface Closeable
Specified by:
close in class org.apache.hadoop.mapreduce.RecordReader<K,V>

getProgress

public float getProgress()
                  throws IOException
Specified by:
getProgress in class org.apache.hadoop.mapreduce.RecordReader<K,V>
Throws:
IOException

getCurrentKey

public K getCurrentKey()
                throws IOException,
                       InterruptedException
Specified by:
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<K,V>
Throws:
IOException
InterruptedException

getCurrentValue

public V getCurrentValue()
                  throws IOException,
                         InterruptedException
Specified by:
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<K,V>
Throws:
IOException
InterruptedException


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.