org.apache.mahout.clustering.streaming.mapreduce
Class CentroidWritable
java.lang.Object
org.apache.mahout.clustering.streaming.mapreduce.CentroidWritable
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class CentroidWritable
- extends Object
- implements org.apache.hadoop.io.Writable
CentroidWritable
public CentroidWritable()
CentroidWritable
public CentroidWritable(Centroid centroid)
getCentroid
public Centroid getCentroid()
write
public void write(DataOutput dataOutput)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
readFields
public void readFields(DataInput dataInput)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
read
public static Centroid read(DataInput dataInput)
throws IOException
- Throws:
IOException
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.