org.apache.mahout.math
Class RandomAccessSparseVectorWritable

java.lang.Object
  extended by org.apache.mahout.math.AbstractVector
      extended by org.apache.mahout.math.RandomAccessSparseVector
          extended by org.apache.mahout.math.RandomAccessSparseVectorWritable
All Implemented Interfaces:
java.lang.Cloneable, org.apache.hadoop.io.Writable, Vector

public class RandomAccessSparseVectorWritable
extends RandomAccessSparseVector
implements org.apache.hadoop.io.Writable


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.mahout.math.RandomAccessSparseVector
RandomAccessSparseVector.Element
 
Field Summary
 
Fields inherited from class org.apache.mahout.math.RandomAccessSparseVector
values
 
Fields inherited from class org.apache.mahout.math.AbstractVector
lengthSquared, size
 
Constructor Summary
RandomAccessSparseVectorWritable()
           
RandomAccessSparseVectorWritable(Vector v)
           
 
Method Summary
 void readFields(java.io.DataInput dataInput)
           
 void write(java.io.DataOutput dataOutput)
           
 
Methods inherited from class org.apache.mahout.math.RandomAccessSparseVector
addTo, assign, clone, dot, equals, getElement, getNumNondefaultElements, getQuick, iterateAll, iterateNonZero, like, like, matrixLike, setQuick
 
Methods inherited from class org.apache.mahout.math.AbstractVector
aggregate, aggregate, asFormatString, assign, assign, assign, assign, assign, cross, decodeVector, divide, dotSelf, equivalent, get, get, getDistanceSquared, getLabelBindings, getLengthSquared, getName, hashCode, maxValue, maxValueIndex, minus, norm, normalize, normalize, plus, plus, set, set, set, setLabelBindings, setName, size, strictEquivalence, times, times, viewPart, zSum
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomAccessSparseVectorWritable

public RandomAccessSparseVectorWritable(Vector v)

RandomAccessSparseVectorWritable

public RandomAccessSparseVectorWritable()
Method Detail

write

public void write(java.io.DataOutput dataOutput)
           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 dataInput)
                throws java.io.IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
java.io.IOException


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.