Class AccumuloRowInputFormat
- java.lang.Object
-
- org.apache.accumulo.core.client.mapred.AbstractInputFormat<K,V>
-
- org.apache.accumulo.core.client.mapred.InputFormatBase<org.apache.hadoop.io.Text,PeekingIterator<Map.Entry<Key,Value>>>
-
- org.apache.accumulo.core.client.mapred.AccumuloRowInputFormat
-
- All Implemented Interfaces:
org.apache.hadoop.mapred.InputFormat<org.apache.hadoop.io.Text,PeekingIterator<Map.Entry<Key,Value>>>
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.mapred.InputFormatBase
InputFormatBase.RangeInputSplit, InputFormatBase.RecordReaderBase<K,V>
-
Nested classes/interfaces inherited from class org.apache.accumulo.core.client.mapred.AbstractInputFormat
AbstractInputFormat.AbstractRecordReader<K,V>
-
-
Field Summary
-
Fields inherited from class org.apache.accumulo.core.client.mapred.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.mapred.RecordReader<org.apache.hadoop.io.Text,PeekingIterator<Map.Entry<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, getIterators, getRanges, getTabletLocator, isBatchScan, isIsolated, isOfflineScan, setAutoAdjustRanges, setBatchScan, setInputTableName, setLocalIterators, setOfflineTableScan, setRanges, setSamplerConfiguration, setScanIsolation, usesLocalIterators
-
Methods inherited from class org.apache.accumulo.core.client.mapred.AbstractInputFormat
getAuthenticationToken, getClassLoaderContext, getClientConfiguration, getInputTableConfig, getInputTableConfigs, getInstance, getLogLevel, getPrincipal, getScanAuthorizations, getSplits, getTabletLocator, isConnectorInfoSet, setClassLoaderContext, setConnectorInfo, setConnectorInfo, setLogLevel, setMockInstance, setScanAuthorizations, setZooKeeperInstance, setZooKeeperInstance, validateOptions
-
-
-
-
Method Detail
-
getRecordReader
public org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.Text,PeekingIterator<Map.Entry<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
-
-