org.apache.mahout.df.mapreduce
Class MapredMapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
org.apache.mahout.df.mapreduce.MapredMapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
- Direct Known Subclasses:
- InMemMapper, Step1Mapper
public class MapredMapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
- extends org.apache.hadoop.mapreduce.Mapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
Base class for Mapred mappers. Loads common parameters from the job
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper |
org.apache.hadoop.mapreduce.Mapper.Context |
Methods inherited from class org.apache.hadoop.mapreduce.Mapper |
cleanup, map, run |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapredMapper
public MapredMapper()
isOobEstimate
protected boolean isOobEstimate()
- Returns:
- if false, the mapper does not output
isNoOutput
protected boolean isNoOutput()
- Returns:
- if false, the mapper does not estimate and output predictions
getTreeBuilder
protected TreeBuilder getTreeBuilder()
getDataset
protected Dataset getDataset()
setup
protected void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
throws java.io.IOException,
java.lang.InterruptedException
- Overrides:
setup
in class org.apache.hadoop.mapreduce.Mapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
- Throws:
java.io.IOException
java.lang.InterruptedException
configure
protected void configure(boolean noOutput,
boolean oobEstimate,
TreeBuilder treeBuilder,
Dataset dataset)
- Useful for testing
- Parameters:
noOutput
- oobEstimate
- treeBuilder
- dataset
-
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.