public class WeightedPropertyVectorWritable extends WeightedVectorWritable
Constructor and Description |
---|
WeightedPropertyVectorWritable() |
WeightedPropertyVectorWritable(double weight,
Vector vector,
Map<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> properties) |
WeightedPropertyVectorWritable(Map<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> properties) |
Modifier and Type | Method and Description |
---|---|
Map<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> |
getProperties() |
void |
readFields(DataInput in) |
void |
setProperties(Map<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> properties) |
String |
toString() |
void |
write(DataOutput out) |
getVector, getWeight, setVector
public WeightedPropertyVectorWritable()
public WeightedPropertyVectorWritable(Map<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> properties)
public Map<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> getProperties()
public void setProperties(Map<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> properties)
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class WeightedVectorWritable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
write
in class WeightedVectorWritable
IOException
public String toString()
toString
in class WeightedVectorWritable
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.