Class InputFormatBase.RecordReaderBase<K,V>
java.lang.Object
org.apache.hadoop.mapreduce.RecordReader<K,V>
org.apache.accumulo.core.client.mapreduce.AbstractInputFormat.AbstractRecordReader<K,V>
org.apache.accumulo.core.client.mapreduce.InputFormatBase.RecordReaderBase<K,V>
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- InputFormatBase<K,
V>
protected abstract static class InputFormatBase.RecordReaderBase<K,V>
extends AbstractInputFormat.AbstractRecordReader<K,V>
-
Field Summary
Fields inherited from class org.apache.accumulo.core.client.mapreduce.AbstractInputFormat.AbstractRecordReader
currentK, currentKey, currentV, numKeysRead, scannerBase, scannerIterator, split -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<IteratorSetting>contextIterators(org.apache.hadoop.mapreduce.TaskAttemptContext context, String tableName) Extracts Iterators settings from the context to be used by RecordReader.protected voidsetupIterators(org.apache.hadoop.mapreduce.TaskAttemptContext context, Scanner scanner) Deprecated.protected voidsetupIterators(org.apache.hadoop.mapreduce.TaskAttemptContext context, Scanner scanner, RangeInputSplit split) Deprecated.since 1.7.0; UsecontextIterators(org.apache.hadoop.mapreduce.TaskAttemptContext, java.lang.String)instead.Methods inherited from class org.apache.accumulo.core.client.mapreduce.AbstractInputFormat.AbstractRecordReader
close, getCurrentKey, getCurrentValue, getProgress, initialize, setupIteratorsMethods inherited from class org.apache.hadoop.mapreduce.RecordReader
nextKeyValue
-
Constructor Details
-
RecordReaderBase
protected RecordReaderBase()
-
-
Method Details
-
contextIterators
protected List<IteratorSetting> contextIterators(org.apache.hadoop.mapreduce.TaskAttemptContext context, String tableName) Description copied from class:AbstractInputFormat.AbstractRecordReaderExtracts Iterators settings from the context to be used by RecordReader.- Specified by:
contextIteratorsin classAbstractInputFormat.AbstractRecordReader<K,V> - Parameters:
context- the Hadoop context for the configured jobtableName- the table name for which the scanner is configured- Returns:
- List of iterator settings for given table
-
setupIterators
@Deprecated protected void setupIterators(org.apache.hadoop.mapreduce.TaskAttemptContext context, Scanner scanner) Deprecated.since 1.7.0; UsecontextIterators(org.apache.hadoop.mapreduce.TaskAttemptContext, java.lang.String)instead.Apply the configured iterators from the configuration to the scanner.- Parameters:
context- the Hadoop context for the configured jobscanner- the scanner to configure
-
setupIterators
@Deprecated protected void setupIterators(org.apache.hadoop.mapreduce.TaskAttemptContext context, Scanner scanner, RangeInputSplit split) Deprecated.since 1.7.0; UsecontextIterators(org.apache.hadoop.mapreduce.TaskAttemptContext, java.lang.String)instead.Initialize a scanner over the given input split using this task attempt configuration.
-
contextIterators(org.apache.hadoop.mapreduce.TaskAttemptContext, java.lang.String)instead.