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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VectorAndPrefsWritable
public VectorAndPrefsWritable()
VectorAndPrefsWritable
public VectorAndPrefsWritable(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
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.