public static class RowSimilarityJob.MergeVectorsReducer extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,VectorWritable,org.apache.hadoop.io.IntWritable,VectorWritable>
Constructor and Description |
---|
RowSimilarityJob.MergeVectorsReducer() |
Modifier and Type | Method and Description |
---|---|
protected void |
reduce(org.apache.hadoop.io.IntWritable row,
Iterable<VectorWritable> partialVectors,
org.apache.hadoop.mapreduce.Reducer.Context ctx) |
protected void |
setup(org.apache.hadoop.mapreduce.Reducer.Context ctx) |
public RowSimilarityJob.MergeVectorsReducer()
protected void setup(org.apache.hadoop.mapreduce.Reducer.Context ctx) throws IOException, InterruptedException
setup
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,VectorWritable,org.apache.hadoop.io.IntWritable,VectorWritable>
IOException
InterruptedException
protected void reduce(org.apache.hadoop.io.IntWritable row, Iterable<VectorWritable> partialVectors, org.apache.hadoop.mapreduce.Reducer.Context ctx) throws IOException, InterruptedException
reduce
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,VectorWritable,org.apache.hadoop.io.IntWritable,VectorWritable>
IOException
InterruptedException
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.