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. ThisInputFormat
provides row names asText
as keys, and a correspondingPeekingIterator
as a value, which in turn makes theKey
/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.
-
-
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
Constructors Constructor Description AccumuloRowInputFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
Methods inherited from class org.apache.accumulo.core.client.mapreduce.InputFormatBase
addIterator, fetchColumns, getAutoAdjustRanges, getFetchedColumns, getInputTableName, getIterators, getRanges, getTabletLocator, isBatchScan, isIsolated, isOfflineScan, setAutoAdjustRanges, setBatchScan, setInputTableName, setLocalIterators, setOfflineTableScan, setRanges, setSamplerConfiguration, setScanIsolation, usesLocalIterators
-
Methods inherited from class org.apache.accumulo.core.client.mapreduce.AbstractInputFormat
getAuthenticationToken, getClassLoaderContext, getClientConfiguration, getInputTableConfig, getInputTableConfigs, getInstance, getLogLevel, getPrincipal, getScanAuthorizations, getSplits, getTabletLocator, getToken, getTokenClass, isConnectorInfoSet, setClassLoaderContext, setConnectorInfo, setConnectorInfo, setLogLevel, setMockInstance, setScanAuthorizations, setZooKeeperInstance, setZooKeeperInstance, validateOptions
-
-
-
-
Method Detail
-
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 classorg.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,PeekingIterator<Map.Entry<Key,Value>>>
- Throws:
IOException
InterruptedException
-
-