public class ClusterOutputPostProcessorReducer extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,VectorWritable,org.apache.hadoop.io.IntWritable,VectorWritable>
| Constructor and Description |
|---|
ClusterOutputPostProcessorReducer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
reduce(org.apache.hadoop.io.IntWritable key,
Iterable<VectorWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
The key is the remapped cluster id and the values contains the vectors in that cluster.
|
void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context) |
public void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
throws IOException
setup in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,VectorWritable,org.apache.hadoop.io.IntWritable,VectorWritable>IOExceptionprotected void reduce(org.apache.hadoop.io.IntWritable key,
Iterable<VectorWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
throws IOException,
InterruptedException
reduce in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,VectorWritable,org.apache.hadoop.io.IntWritable,VectorWritable>IOExceptionInterruptedExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.