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