public final class VectorAndPrefsWritable extends Object implements org.apache.hadoop.io.Writable
Constructor and Description |
---|
VectorAndPrefsWritable() |
VectorAndPrefsWritable(Vector vector,
List<Long> userIDs,
List<Float> values) |
Modifier and Type | Method and Description |
---|---|
List<Long> |
getUserIDs() |
List<Float> |
getValues() |
Vector |
getVector() |
void |
readFields(DataInput in) |
void |
set(Vector vector,
List<Long> userIDs,
List<Float> values) |
String |
toString() |
void |
write(DataOutput out) |
public Vector getVector()
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.