org.apache.mahout.math
Class VectorWritable
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.mahout.math.VectorWritable
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, org.apache.hadoop.io.Writable
- Direct Known Subclasses:
- MultiLabelVectorWritable
public class VectorWritable
- extends org.apache.hadoop.conf.Configured
- implements org.apache.hadoop.io.Writable
Methods inherited from class org.apache.hadoop.conf.Configured |
getConf, setConf |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VectorWritable
public VectorWritable()
VectorWritable
public VectorWritable(Vector v)
get
public Vector get()
set
public void set(Vector vector)
write
public void write(java.io.DataOutput out)
throws java.io.IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
readFields
public void readFields(java.io.DataInput in)
throws java.io.IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
writeVector
public static void writeVector(java.io.DataOutput out,
Vector vector)
throws java.io.IOException
- Write the vector to the output
- Throws:
java.io.IOException
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.