org.apache.accumulo.core.client.mapreduce
Class AccumuloInputFormat

java.lang.Object
  extended by org.apache.hadoop.mapreduce.InputFormat<K,V>
      extended by org.apache.accumulo.core.client.mapreduce.AbstractInputFormat<K,V>
          extended by org.apache.accumulo.core.client.mapreduce.InputFormatBase<Key,Value>
              extended by org.apache.accumulo.core.client.mapreduce.AccumuloInputFormat

public class AccumuloInputFormat
extends InputFormatBase<Key,Value>

This class allows MapReduce jobs to use Accumulo as the source of data. This InputFormat provides keys and values of type Key and Value to the Map function. The user must specify the following via static configurator methods:

Other static methods are optional.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.accumulo.core.client.mapreduce.InputFormatBase
InputFormatBase.RangeInputSplit, InputFormatBase.RecordReaderBase<K,V>
 
Nested classes/interfaces inherited from class org.apache.accumulo.core.client.mapreduce.AbstractInputFormat
AbstractInputFormat.AbstractRecordReader<K,V>
 
Field Summary
 
Fields inherited from class org.apache.accumulo.core.client.mapreduce.AbstractInputFormat
CLASS, log
 
Constructor Summary
AccumuloInputFormat()
           
 
Method Summary
 org.apache.hadoop.mapreduce.RecordReader<Key,Value> createRecordReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context)
           
 
Methods inherited from class org.apache.accumulo.core.client.mapreduce.InputFormatBase
addIterator, fetchColumns, getAutoAdjustRanges, getFetchedColumns, getInputTableName, getIterators, getRanges, getTabletLocator, isIsolated, isOfflineScan, setAutoAdjustRanges, setInputTableName, setLocalIterators, setOfflineTableScan, setRanges, setScanIsolation, usesLocalIterators
 
Methods inherited from class org.apache.accumulo.core.client.mapreduce.AbstractInputFormat
getAuthenticationToken, getInputTableConfig, getInputTableConfigs, getInstance, getLogLevel, getPrincipal, getScanAuthorizations, getSplits, getTabletLocator, getToken, getTokenClass, isConnectorInfoSet, setConnectorInfo, setConnectorInfo, setLogLevel, setMockInstance, setScanAuthorizations, setZooKeeperInstance, setZooKeeperInstance, validateOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccumuloInputFormat

public AccumuloInputFormat()
Method Detail

createRecordReader

public org.apache.hadoop.mapreduce.RecordReader<Key,Value> createRecordReader(org.apache.hadoop.mapreduce.InputSplit split,
                                                                              org.apache.hadoop.mapreduce.TaskAttemptContext context)
                                                                       throws IOException,
                                                                              InterruptedException
Specified by:
createRecordReader in class org.apache.hadoop.mapreduce.InputFormat<Key,Value>
Throws:
IOException
InterruptedException


Copyright © 2015 Apache Accumulo Project. All rights reserved.