public class DynamicInputFormat<K,V> extends InputFormat<K,V>
构造器和说明 |
---|
DynamicInputFormat() |
限定符和类型 | 方法和说明 |
---|---|
RecordReader<K,V> |
createRecordReader(InputSplit inputSplit,
TaskAttemptContext taskAttemptContext)
Implementation of Inputformat::createRecordReader().
|
List<InputSplit> |
getSplits(JobContext jobContext)
Implementation of InputFormat::getSplits().
|
public List<InputSplit> getSplits(JobContext jobContext) throws IOException, InterruptedException
getSplits
在类中 InputFormat<K,V>
jobContext
- JobContext for the map job.IOException,
- on failure.InterruptedException
IOException
public RecordReader<K,V> createRecordReader(InputSplit inputSplit, TaskAttemptContext taskAttemptContext) throws IOException, InterruptedException
createRecordReader
在类中 InputFormat<K,V>
inputSplit
- The split for which the RecordReader is required.taskAttemptContext
- TaskAttemptContext for the current attempt.IOException,
- on failure.InterruptedException
IOException
Copyright © 2009 The Apache Software Foundation