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