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,
Iterable<DistributedRowMatrix.MatrixEntryWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context ctx)
throws IOException,
InterruptedException
- Overrides:
reduce
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,DistributedRowMatrix.MatrixEntryWritable,org.apache.hadoop.io.IntWritable,VectorWritable>
- Throws:
IOException
InterruptedException
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.