org.apache.mahout.math.hadoop.similarity
Class RowSimilarityJob.SimilarityReducer
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<WeightedRowPair,Cooccurrence,SimilarityMatrixEntryKey,DistributedRowMatrix.MatrixEntryWritable>
org.apache.mahout.math.hadoop.similarity.RowSimilarityJob.SimilarityReducer
- Enclosing class:
- RowSimilarityJob
public static class RowSimilarityJob.SimilarityReducer
- extends org.apache.hadoop.mapreduce.Reducer<WeightedRowPair,Cooccurrence,SimilarityMatrixEntryKey,DistributedRowMatrix.MatrixEntryWritable>
computes the pairwise similarities
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowSimilarityJob.SimilarityReducer
public RowSimilarityJob.SimilarityReducer()
setup
protected void setup(org.apache.hadoop.mapreduce.Reducer.Context ctx)
throws IOException,
InterruptedException
- Overrides:
setup
in class org.apache.hadoop.mapreduce.Reducer<WeightedRowPair,Cooccurrence,SimilarityMatrixEntryKey,DistributedRowMatrix.MatrixEntryWritable>
- Throws:
IOException
InterruptedException
reduce
protected void reduce(WeightedRowPair rowPair,
Iterable<Cooccurrence> cooccurrences,
org.apache.hadoop.mapreduce.Reducer.Context ctx)
throws IOException,
InterruptedException
- Overrides:
reduce
in class org.apache.hadoop.mapreduce.Reducer<WeightedRowPair,Cooccurrence,SimilarityMatrixEntryKey,DistributedRowMatrix.MatrixEntryWritable>
- Throws:
IOException
InterruptedException
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.