org.apache.mahout.utils.clustering
Class ClusterDumperWriter
java.lang.Object
org.apache.mahout.utils.clustering.AbstractClusterWriter
org.apache.mahout.utils.clustering.ClusterDumperWriter
- All Implemented Interfaces:
- Closeable, ClusterWriter
public class ClusterDumperWriter
- extends AbstractClusterWriter
Implements a ClusterWriter
that outputs in the format used by ClusterDumper in Mahout 0.5
Method Summary |
void |
write(Cluster value)
Write out a Cluster |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterDumperWriter
public ClusterDumperWriter(Writer writer,
Map<Integer,List<WeightedVectorWritable>> clusterIdToPoints,
DistanceMeasure measure,
int numTopFeatures,
String[] dictionary,
int subString)
write
public void write(Cluster value)
throws IOException
- Description copied from interface:
ClusterWriter
- Write out a Cluster
- Parameters:
value
- The Cluster
to write
- Throws:
IOException
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.