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<WeightedVectorWritable>> 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, writepublic ClusterDumperWriter(Writer writer, Map<Integer,List<WeightedVectorWritable>> clusterIdToPoints, DistanceMeasure measure, int numTopFeatures, String[] dictionary, int subString)
public void write(ClusterWritable clusterWritable) throws IOException
ClusterWriterIOExceptionCopyright © 2008–2013 The Apache Software Foundation. All rights reserved.