public class ClusterDumperWriter extends AbstractClusterWriter
ClusterWriter
that outputs in the format used by ClusterDumper in Mahout 0.5clusterIdToPoints, measure, writer
Constructor and Description |
---|
ClusterDumperWriter(Writer writer,
Map<Integer,List<WeightedPropertyVectorWritable>> clusterIdToPoints,
DistanceMeasure measure,
int numTopFeatures,
String[] dictionary,
int subString) |
Modifier and Type | Method and Description |
---|---|
void |
write(ClusterWritable clusterWritable)
Write out a Cluster
|
close, getClusterIdToPoints, getTopFeatures, getTopTerms, getWriter, write, write
public ClusterDumperWriter(Writer writer, Map<Integer,List<WeightedPropertyVectorWritable>> clusterIdToPoints, DistanceMeasure measure, int numTopFeatures, String[] dictionary, int subString)
public void write(ClusterWritable clusterWritable) throws IOException
ClusterWriter
IOException
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.