public class NMapInputFormat extends org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>
Modifier and Type | Class and Description |
---|---|
private static class |
NMapInputFormat.NullInputSplit |
private static class |
NMapInputFormat.SingleRecordReader<K,V> |
Constructor and Description |
---|
NMapInputFormat() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable> |
createRecordReader(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext tac) |
static int |
getNumMapTasks(org.apache.hadoop.conf.Configuration conf) |
List<org.apache.hadoop.mapreduce.InputSplit> |
getSplits(org.apache.hadoop.mapreduce.JobContext context) |
static void |
setNumMapTasks(org.apache.hadoop.conf.Configuration conf,
int numTasks) |
private static final String NMAPS_KEY
public NMapInputFormat()
public org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable> createRecordReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext tac)
createRecordReader
in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>
public List<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext context)
getSplits
in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>
public static void setNumMapTasks(org.apache.hadoop.conf.Configuration conf, int numTasks)
public static int getNumMapTasks(org.apache.hadoop.conf.Configuration conf)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.