public class AccumuloRowInputFormat extends InputFormatBase<org.apache.hadoop.io.Text,org.apache.accumulo.core.util.PeekingIterator<Map.Entry<Key,Value>>>
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.InputFormatBase.RangeInputSplit, InputFormatBase.RecordReaderBase<K,V>
log
Constructor and Description |
---|
AccumuloRowInputFormat() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.apache.accumulo.core.util.PeekingIterator<Map.Entry<Key,Value>>> |
createRecordReader(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
addIterator, addIterator, disableAutoAdjustRanges, fetchColumns, fetchColumns, getAuthorizations, getAutoAdjustRanges, getAutoAdjustRanges, getFetchedColumns, getFetchedColumns, getInputTableName, getInstance, getInstance, getIteratorOptions, getIterators, getIterators, getLogLevel, getLogLevel, getMaxVersions, getPrincipal, getPrincipal, getRanges, getRanges, getScanAuthorizations, getSplits, getTablename, getTabletLocator, getTabletLocator, getToken, getToken, getTokenClass, isConnectorInfoSet, isIsolated, isIsolated, isOfflineScan, isOfflineScan, setAutoAdjustRanges, setConnectorInfo, setInputInfo, setInputTableName, setIsolated, setLocalIterators, setLocalIterators, setLogLevel, setLogLevel, setMaxVersions, setMockInstance, setMockInstance, setOfflineTableScan, setRanges, setRanges, setScanAuthorizations, setScanIsolation, setScanOffline, setZooKeeperInstance, setZooKeeperInstance, usesLocalIterators, usesLocalIterators, validateOptions, validateOptions
public org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.apache.accumulo.core.util.PeekingIterator<Map.Entry<Key,Value>>> createRecordReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
createRecordReader
in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,org.apache.accumulo.core.util.PeekingIterator<Map.Entry<Key,Value>>>
IOException
InterruptedException
Copyright © 2011-2016 The Apache Software Foundation. All Rights Reserved.