org.apache.mahout.cf.taste.hadoop.als
Class PredictionJob.FeaturesMapper

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.IntWritable,VectorWritable,TaggedVarIntWritable,VectorWithIndexWritable>
      extended by org.apache.mahout.cf.taste.hadoop.als.PredictionJob.FeaturesMapper
Enclosing class:
PredictionJob

public static class PredictionJob.FeaturesMapper
extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.IntWritable,VectorWritable,TaggedVarIntWritable,VectorWithIndexWritable>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context
 
Constructor Summary
PredictionJob.FeaturesMapper()
           
 
Method Summary
protected  void map(org.apache.hadoop.io.IntWritable id, VectorWritable features, org.apache.hadoop.mapreduce.Mapper.Context ctx)
           
 
Methods inherited from class org.apache.hadoop.mapreduce.Mapper
cleanup, run, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PredictionJob.FeaturesMapper

public PredictionJob.FeaturesMapper()
Method Detail

map

protected void map(org.apache.hadoop.io.IntWritable id,
                   VectorWritable features,
                   org.apache.hadoop.mapreduce.Mapper.Context ctx)
            throws IOException,
                   InterruptedException
Overrides:
map in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.IntWritable,VectorWritable,TaggedVarIntWritable,VectorWithIndexWritable>
Throws:
IOException
InterruptedException


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.