@Deprecated public class Step1Mapper extends MapredMapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,TreeID,MapredOutput>
| Constructor and Description |
|---|
Step1Mapper()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup(org.apache.hadoop.mapreduce.Mapper.Context context)
Deprecated.
|
protected void |
configure(Long seed,
int partition,
int numMapTasks,
int numTrees)
Deprecated.
Useful when testing
|
int |
getFirstTreeId()
Deprecated.
|
protected void |
map(org.apache.hadoop.io.LongWritable key,
org.apache.hadoop.io.Text value,
org.apache.hadoop.mapreduce.Mapper.Context context)
Deprecated.
|
static int |
nbTrees(int numMaps,
int numTrees,
int partition)
Deprecated.
Compute the number of trees for a given partition.
|
protected void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context)
Deprecated.
|
configure, getDataset, getTreeBuilder, isOutputpublic int getFirstTreeId()
protected void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
setup in class MapredMapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,TreeID,MapredOutput>IOExceptionInterruptedExceptionprotected void configure(Long seed, int partition, int numMapTasks, int numTrees)
partition - current mapper inputSplit partitionnumMapTasks - number of running map tasksnumTrees - total number of trees in the forestpublic static int nbTrees(int numMaps,
int numTrees,
int partition)
numMaps - total number of maps (partitions)numTrees - total number of trees to buildpartition - partition to compute the number of trees forprotected void map(org.apache.hadoop.io.LongWritable key,
org.apache.hadoop.io.Text value,
org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
map in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,TreeID,MapredOutput>IOExceptionInterruptedExceptionprotected void cleanup(org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
cleanup in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,TreeID,MapredOutput>IOExceptionInterruptedExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.