org.apache.mahout.cf.taste.hadoop.item
Class VectorAndPrefsWritable
java.lang.Object
org.apache.mahout.cf.taste.hadoop.item.VectorAndPrefsWritable
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public final class VectorAndPrefsWritable
- extends Object
- implements org.apache.hadoop.io.Writable
VectorAndPrefsWritable
public VectorAndPrefsWritable()
VectorAndPrefsWritable
public VectorAndPrefsWritable(Vector vector,
List<Long> userIDs,
List<Float> values)
set
public void set(Vector vector,
List<Long> userIDs,
List<Float> values)
getVector
public Vector getVector()
getUserIDs
public List<Long> getUserIDs()
getValues
public List<Float> getValues()
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.