org.apache.mahout.cf.taste.hadoop.similarity.item
Class CountUsersMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<VarLongWritable,VectorWritable,CountUsersKeyWritable,VarLongWritable>
org.apache.mahout.cf.taste.hadoop.similarity.item.CountUsersMapper
public class CountUsersMapper
- extends org.apache.hadoop.mapreduce.Mapper<VarLongWritable,VectorWritable,CountUsersKeyWritable,VarLongWritable>
Maps out the userIDs in a way that we can use a secondary sort on them
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, run, setup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CountUsersMapper
public CountUsersMapper()
map
protected void map(VarLongWritable key,
VectorWritable value,
org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
- Overrides:
map
in class org.apache.hadoop.mapreduce.Mapper<VarLongWritable,VectorWritable,CountUsersKeyWritable,VarLongWritable>
- Throws:
IOException
InterruptedException
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.