org.apache.mahout.df.mapred
Class MapredMapper
java.lang.Object
org.apache.hadoop.mapred.MapReduceBase
org.apache.mahout.df.mapred.MapredMapper
- All Implemented Interfaces:
- java.io.Closeable, org.apache.hadoop.mapred.JobConfigurable
- Direct Known Subclasses:
- InMemMapper, Step1Mapper
public class MapredMapper
- extends org.apache.hadoop.mapred.MapReduceBase
Base class for Mapred mappers. Loads common parameters from the job
Methods inherited from class org.apache.hadoop.mapred.MapReduceBase |
close |
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()
configure
public void configure(org.apache.hadoop.mapred.JobConf conf)
- Specified by:
configure
in interface org.apache.hadoop.mapred.JobConfigurable
- Overrides:
configure
in class org.apache.hadoop.mapred.MapReduceBase
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.