org.apache.mahout.cf.taste.hadoop.als
Class VectorWithIndexWritable
java.lang.Object
org.apache.mahout.cf.taste.hadoop.als.VectorWithIndexWritable
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class VectorWithIndexWritable
- 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 |
VectorWithIndexWritable
public VectorWithIndexWritable()
VectorWithIndexWritable
public VectorWithIndexWritable(Vector vector)
VectorWithIndexWritable
public VectorWithIndexWritable(int idIndex)
VectorWithIndexWritable
public VectorWithIndexWritable(Integer idIndex,
Vector vector)
getVector
public Vector getVector()
getIDIndex
public int getIDIndex()
hasVector
public boolean hasVector()
hasIndex
public boolean hasIndex()
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.