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
-
Method Summary
Modifier and TypeMethodDescriptionprotected List<IteratorSetting>
contextIterators
(org.apache.hadoop.mapreduce.TaskAttemptContext context, String tableName) Deprecated.protected void
setupIterators
(org.apache.hadoop.mapreduce.TaskAttemptContext context, Scanner scanner) 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.Methods inherited from class org.apache.accumulo.core.client.mapreduce.AbstractInputFormat.AbstractRecordReader
close, getCurrentKey, getCurrentValue, getProgress, initialize, setupIterators
Methods inherited from class org.apache.hadoop.mapreduce.RecordReader
nextKeyValue
-
Constructor Details
-
RecordReaderBase
protected RecordReaderBase()
-
-
Method Details
-
contextIterators
@Deprecated(since="2.0.0") protected List<IteratorSetting> contextIterators(org.apache.hadoop.mapreduce.TaskAttemptContext context, String tableName) Deprecated.Description copied from class:AbstractInputFormat.AbstractRecordReader
Extracts Iterators settings from the context to be used by RecordReader.- Specified by:
contextIterators
in 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(since="1.7.0") 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(since="1.7.0") 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.