org.apache.mahout.df.mapred
Class MapredMapper

java.lang.Object
  extended by org.apache.hadoop.mapred.MapReduceBase
      extended by 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


Constructor Summary
MapredMapper()
           
 
Method Summary
protected  void configure(boolean noOutput, boolean oobEstimate, TreeBuilder treeBuilder, Dataset dataset)
          Useful for testing
 void configure(org.apache.hadoop.mapred.JobConf conf)
           
protected  Dataset getDataset()
           
protected  TreeBuilder getTreeBuilder()
           
protected  boolean isNoOutput()
           
protected  boolean isOobEstimate()
           
 
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
 

Constructor Detail

MapredMapper

public MapredMapper()
Method Detail

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.