public final class VectorOrPrefWritable extends Object implements org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
VectorOrPrefWritable() |
VectorOrPrefWritable(long userID,
float value) |
VectorOrPrefWritable(Vector vector) |
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.WritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.