public class RepresentativePointsReducer extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,WeightedVectorWritable,org.apache.hadoop.io.IntWritable,VectorWritable>
Constructor and Description |
---|
RepresentativePointsReducer() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup(org.apache.hadoop.mapreduce.Reducer.Context context) |
void |
configure(Map<Integer,List<VectorWritable>> representativePoints) |
protected void |
reduce(org.apache.hadoop.io.IntWritable key,
Iterable<WeightedVectorWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context) |
protected void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context) |
protected void cleanup(org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException, InterruptedException
cleanup
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,WeightedVectorWritable,org.apache.hadoop.io.IntWritable,VectorWritable>
IOException
InterruptedException
protected void reduce(org.apache.hadoop.io.IntWritable key, Iterable<WeightedVectorWritable> values, org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException, InterruptedException
reduce
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,WeightedVectorWritable,org.apache.hadoop.io.IntWritable,VectorWritable>
IOException
InterruptedException
protected void setup(org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException, InterruptedException
setup
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,WeightedVectorWritable,org.apache.hadoop.io.IntWritable,VectorWritable>
IOException
InterruptedException
public void configure(Map<Integer,List<VectorWritable>> representativePoints)
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.