public final class VectorOrPrefWritable extends Object implements org.apache.hadoop.io.Writable
Constructor and Description |
---|
VectorOrPrefWritable() |
VectorOrPrefWritable(long userID,
float value) |
VectorOrPrefWritable(Vector vector) |
Modifier and Type | Method and Description |
---|---|
long |
getUserID() |
float |
getValue() |
Vector |
getVector() |
void |
readFields(DataInput in) |
void |
set(long userID,
float value) |
String |
toString() |
void |
write(DataOutput out) |
public VectorOrPrefWritable()
public VectorOrPrefWritable(Vector vector)
public VectorOrPrefWritable(long userID, float value)
public Vector getVector()
public long getUserID()
public float getValue()
public void set(long userID, float value)
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.