org.apache.accumulo.core.client.mapred
Class AccumuloInputFormat
java.lang.Object
org.apache.accumulo.core.client.mapred.InputFormatBase<Key,Value>
org.apache.accumulo.core.client.mapred.AccumuloInputFormat
- All Implemented Interfaces:
- org.apache.hadoop.mapred.InputFormat<Key,Value>
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.
Method Summary |
org.apache.hadoop.mapred.RecordReader<Key,Value> |
getRecordReader(org.apache.hadoop.mapred.InputSplit split,
org.apache.hadoop.mapred.JobConf job,
org.apache.hadoop.mapred.Reporter reporter)
|
Methods inherited from class org.apache.accumulo.core.client.mapred.InputFormatBase |
addIterator, fetchColumns, getAutoAdjustRanges, getFetchedColumns, getInputTableName, getInstance, getIterators, getLogLevel, getPrincipal, getRanges, getScanAuthorizations, getSplits, getTabletLocator, getToken, getTokenClass, isConnectorInfoSet, isIsolated, isOfflineScan, setAutoAdjustRanges, setConnectorInfo, setInputTableName, setLocalIterators, setLogLevel, setMockInstance, setOfflineTableScan, setRanges, setScanAuthorizations, setScanIsolation, setZooKeeperInstance, usesLocalIterators, validateOptions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccumuloInputFormat
public AccumuloInputFormat()
getRecordReader
public org.apache.hadoop.mapred.RecordReader<Key,Value> getRecordReader(org.apache.hadoop.mapred.InputSplit split,
org.apache.hadoop.mapred.JobConf job,
org.apache.hadoop.mapred.Reporter reporter)
throws IOException
- Throws:
IOException
Copyright © 2013 Apache Accumulo Project. All Rights Reserved.