public class DynamicInputFormat<K,V>
extends org.apache.hadoop.mapreduce.InputFormat<K,V>
| Constructor and Description |
|---|
DynamicInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.mapreduce.RecordReader<K,V> |
createRecordReader(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext)
Implementation of Inputformat::createRecordReader().
|
org.apache.hadoop.tools.mapred.lib.DynamicInputChunkContext<K,V> |
getChunkContext(org.apache.hadoop.conf.Configuration configuration) |
List<org.apache.hadoop.mapreduce.InputSplit> |
getSplits(org.apache.hadoop.mapreduce.JobContext jobContext)
Implementation of InputFormat::getSplits().
|
public List<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext jobContext) throws IOException, InterruptedException
getSplits in class org.apache.hadoop.mapreduce.InputFormat<K,V>jobContext - JobContext for the map job.IOExceptionInterruptedExceptionpublic org.apache.hadoop.tools.mapred.lib.DynamicInputChunkContext<K,V> getChunkContext(org.apache.hadoop.conf.Configuration configuration) throws IOException
IOExceptionpublic org.apache.hadoop.mapreduce.RecordReader<K,V> createRecordReader(org.apache.hadoop.mapreduce.InputSplit inputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext) throws IOException, InterruptedException
createRecordReader in class org.apache.hadoop.mapreduce.InputFormat<K,V>inputSplit - The split for which the RecordReader is required.taskAttemptContext - TaskAttemptContext for the current attempt.IOExceptionInterruptedExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.