org.apache.accumulo.core.client.mapreduce
Class AccumuloRowInputFormat
java.lang.Object
org.apache.hadoop.mapreduce.InputFormat<K,V>
org.apache.accumulo.core.client.mapreduce.AbstractInputFormat<K,V>
org.apache.accumulo.core.client.mapreduce.InputFormatBase<org.apache.hadoop.io.Text,PeekingIterator<Map.Entry<Key,Value>>>
org.apache.accumulo.core.client.mapreduce.AccumuloRowInputFormat
public class AccumuloRowInputFormat
- extends InputFormatBase<org.apache.hadoop.io.Text,PeekingIterator<Map.Entry<Key,Value>>>
This class allows MapReduce jobs to use Accumulo as the source of data. This InputFormat
provides row names as Text
as keys, and a
corresponding PeekingIterator
as a value, which in turn makes the Key
/Value
pairs for that row available to the Map function.
The user must specify the following via static configurator methods:
Other static methods are optional.
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 |
AccumuloRowInputFormat
public AccumuloRowInputFormat()
createRecordReader
public org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,PeekingIterator<Map.Entry<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<org.apache.hadoop.io.Text,PeekingIterator<Map.Entry<Key,Value>>>
- Throws:
IOException
InterruptedException
Copyright © 2015 Apache Accumulo Project. All rights reserved.