public class ClusterClassificationMapper extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.WritableComparable<?>,VectorWritable,org.apache.hadoop.io.IntWritable,WeightedVectorWritable>
Constructor and Description |
---|
ClusterClassificationMapper() |
Modifier and Type | Method and Description |
---|---|
protected void |
map(org.apache.hadoop.io.WritableComparable<?> key,
VectorWritable vw,
org.apache.hadoop.mapreduce.Mapper.Context context)
Mapper which classifies the vectors to respective clusters.
|
static List<Cluster> |
populateClusterModels(org.apache.hadoop.fs.Path clusterOutputPath,
org.apache.hadoop.conf.Configuration conf) |
protected void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context) |
protected void setup(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
setup
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.WritableComparable<?>,VectorWritable,org.apache.hadoop.io.IntWritable,WeightedVectorWritable>
IOException
InterruptedException
protected void map(org.apache.hadoop.io.WritableComparable<?> key, VectorWritable vw, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
map
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.WritableComparable<?>,VectorWritable,org.apache.hadoop.io.IntWritable,WeightedVectorWritable>
IOException
InterruptedException
public static List<Cluster> populateClusterModels(org.apache.hadoop.fs.Path clusterOutputPath, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.