org.apache.mahout.cf.taste.hadoop.similarity.item
Class ToItemVectorsReducer
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,DistributedRowMatrix.MatrixEntryWritable,org.apache.hadoop.io.IntWritable,VectorWritable>
org.apache.mahout.cf.taste.hadoop.similarity.item.ToItemVectorsReducer
public class ToItemVectorsReducer
- extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,DistributedRowMatrix.MatrixEntryWritable,org.apache.hadoop.io.IntWritable,VectorWritable>
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer |
org.apache.hadoop.mapreduce.Reducer.Context |
Methods inherited from class org.apache.hadoop.mapreduce.Reducer |
cleanup, run, setup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToItemVectorsReducer
public ToItemVectorsReducer()
reduce
protected void reduce(org.apache.hadoop.io.IntWritable rowIndex,
java.lang.Iterable<DistributedRowMatrix.MatrixEntryWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context ctx)
throws java.io.IOException,
java.lang.InterruptedException
- Overrides:
reduce
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,DistributedRowMatrix.MatrixEntryWritable,org.apache.hadoop.io.IntWritable,VectorWritable>
- Throws:
java.io.IOException
java.lang.InterruptedException
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.