public class UniformSizeInputFormat extends InputFormat<Text,FileStatus>
构造器和说明 |
---|
UniformSizeInputFormat() |
限定符和类型 | 方法和说明 |
---|---|
RecordReader<Text,FileStatus> |
createRecordReader(InputSplit split,
TaskAttemptContext context)
Implementation of InputFormat::createRecordReader().
|
List<InputSplit> |
getSplits(JobContext context)
Implementation of InputFormat::getSplits().
|
public List<InputSplit> getSplits(JobContext context) throws IOException, InterruptedException
getSplits
在类中 InputFormat<Text,FileStatus>
context
- JobContext for the job.IOException:
- On failure.InterruptedException
IOException
public RecordReader<Text,FileStatus> createRecordReader(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException
createRecordReader
在类中 InputFormat<Text,FileStatus>
split
- The split for which the RecordReader is sought.context
- The context of the current task-attempt.IOException
InterruptedException
Copyright © 2009 The Apache Software Foundation