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, setVectorpublic 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.WritablereadFields in class WeightedVectorWritableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class WeightedVectorWritableIOExceptionpublic String toString()
toString in class WeightedVectorWritableCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.