org.apache.mahout.df.mapreduce
Class MapredMapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Mapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context
 
Constructor Summary
MapredMapper()
           
 
Method Summary
protected  void configure(boolean noOutput, boolean oobEstimate, TreeBuilder treeBuilder, Dataset dataset)
          Useful for testing
protected  Dataset getDataset()
           
protected  TreeBuilder getTreeBuilder()
           
protected  boolean isNoOutput()
           
protected  boolean isOobEstimate()
           
protected  void setup(org.apache.hadoop.mapreduce.Mapper.Context 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
 

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()

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.