public class UniformSizeInputFormat extends org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,CopyListingFileStatus>
| Constructor and Description |
|---|
UniformSizeInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,CopyListingFileStatus> |
createRecordReader(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Implementation of InputFormat::createRecordReader().
|
List<org.apache.hadoop.mapreduce.InputSplit> |
getSplits(org.apache.hadoop.mapreduce.JobContext context)
Implementation of InputFormat::getSplits().
|
public List<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext context) throws IOException, InterruptedException
getSplits in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,CopyListingFileStatus>context - JobContext for the job.IOExceptionInterruptedExceptionpublic org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,CopyListingFileStatus> createRecordReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
createRecordReader in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,CopyListingFileStatus>split - The split for which the RecordReader is sought.context - The context of the current task-attempt.IOExceptionInterruptedExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.