org.apache.mahout.cf.taste.hadoop.als
Class VectorWithIndexWritable

java.lang.Object
  extended by 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


Constructor Summary
VectorWithIndexWritable()
           
VectorWithIndexWritable(int idIndex)
           
VectorWithIndexWritable(Integer idIndex, Vector vector)
           
VectorWithIndexWritable(Vector vector)
           
 
Method Summary
 int getIDIndex()
           
 Vector getVector()
           
 boolean hasIndex()
           
 boolean hasVector()
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorWithIndexWritable

public VectorWithIndexWritable()

VectorWithIndexWritable

public VectorWithIndexWritable(Vector vector)

VectorWithIndexWritable

public VectorWithIndexWritable(int idIndex)

VectorWithIndexWritable

public VectorWithIndexWritable(Integer idIndex,
                               Vector vector)
Method Detail

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.