org.apache.mahout.math.hadoop.similarity.cooccurrence
Class RowSimilarityJob.SimilarityReducer

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,VectorWritable,org.apache.hadoop.io.IntWritable,VectorWritable>
      extended by org.apache.mahout.math.hadoop.similarity.cooccurrence.RowSimilarityJob.SimilarityReducer
Enclosing class:
RowSimilarityJob

public static class RowSimilarityJob.SimilarityReducer
extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,VectorWritable,org.apache.hadoop.io.IntWritable,VectorWritable>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
org.apache.hadoop.mapreduce.Reducer.Context
 
Constructor Summary
RowSimilarityJob.SimilarityReducer()
           
 
Method Summary
protected  void reduce(org.apache.hadoop.io.IntWritable row, Iterable<VectorWritable> partialDots, org.apache.hadoop.mapreduce.Reducer.Context ctx)
           
protected  void setup(org.apache.hadoop.mapreduce.Reducer.Context ctx)
           
 
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
 

Constructor Detail

RowSimilarityJob.SimilarityReducer

public RowSimilarityJob.SimilarityReducer()
Method Detail

setup

protected void setup(org.apache.hadoop.mapreduce.Reducer.Context ctx)
              throws IOException,
                     InterruptedException
Overrides:
setup in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,VectorWritable,org.apache.hadoop.io.IntWritable,VectorWritable>
Throws:
IOException
InterruptedException

reduce

protected void reduce(org.apache.hadoop.io.IntWritable row,
                      Iterable<VectorWritable> partialDots,
                      org.apache.hadoop.mapreduce.Reducer.Context ctx)
               throws IOException,
                      InterruptedException
Overrides:
reduce in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,VectorWritable,org.apache.hadoop.io.IntWritable,VectorWritable>
Throws:
IOException
InterruptedException


Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.