org.apache.mahout.clustering.classify
Class WeightedPropertyVectorWritable
java.lang.Object
org.apache.mahout.clustering.classify.WeightedVectorWritable
org.apache.mahout.clustering.classify.WeightedPropertyVectorWritable
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class WeightedPropertyVectorWritable
- extends WeightedVectorWritable
WeightedPropertyVectorWritable
public WeightedPropertyVectorWritable()
WeightedPropertyVectorWritable
public WeightedPropertyVectorWritable(Map<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> properties)
WeightedPropertyVectorWritable
public WeightedPropertyVectorWritable(double weight,
Vector vector,
Map<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> properties)
getProperties
public Map<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> getProperties()
setProperties
public void setProperties(Map<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> properties)
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Overrides:
readFields
in class WeightedVectorWritable
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Overrides:
write
in class WeightedVectorWritable
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class WeightedVectorWritable
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.