public class UniformSizeInputFormat extends InputFormat<Text,FileStatus>
Constructor and Description |
---|
UniformSizeInputFormat() |
Modifier and Type | Method and Description |
---|---|
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
in class 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
in class InputFormat<Text,FileStatus>
split
- The split for which the RecordReader is sought.context
- The context of the current task-attempt.IOException
InterruptedException
Copyright © 2013 Apache Software Foundation. All rights reserved.