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>
AbstractInputFormat.AbstractRecordReader<K,V>
CLASS, 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, fetchColumns, getAutoAdjustRanges, getFetchedColumns, getInputTableName, getIterators, getRanges, getTabletLocator, isBatchScan, isIsolated, isOfflineScan, setAutoAdjustRanges, setBatchScan, setInputTableName, setLocalIterators, setOfflineTableScan, setRanges, setSamplerConfiguration, setScanIsolation, usesLocalIterators
getAuthenticationToken, getClassLoaderContext, getClientConfiguration, getInputTableConfig, getInputTableConfigs, getInstance, getLogLevel, getPrincipal, getScanAuthorizations, getSplits, getTabletLocator, getToken, getTokenClass, isConnectorInfoSet, setClassLoaderContext, setConnectorInfo, setConnectorInfo, setLogLevel, setMockInstance, setScanAuthorizations, setZooKeeperInstance, setZooKeeperInstance, 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–2017 The Apache Software Foundation. All rights reserved.