public static class DistributedPentomino.PentMap extends MapReduceBase implements Mapper<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
Constructor and Description |
---|
DistributedPentomino.PentMap() |
Modifier and Type | Method and Description |
---|---|
void |
configure(JobConf conf)
Default implementation that does nothing.
|
void |
map(org.apache.hadoop.io.WritableComparable key,
org.apache.hadoop.io.Text value,
OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> output,
Reporter reporter)
Break the prefix string into moves (a sequence of integer row ids that
will be selected for each column in order).
|
close
public void map(org.apache.hadoop.io.WritableComparable key, org.apache.hadoop.io.Text value, OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> output, Reporter reporter) throws java.io.IOException
map
in interface Mapper<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
key
- the input key.value
- the input value.output
- collects mapped keys and values.reporter
- facility to report progress.java.io.IOException
public void configure(JobConf conf)
MapReduceBase
configure
in interface JobConfigurable
configure
in class MapReduceBase
conf
- the configurationCopyright © 2009 The Apache Software Foundation