org.apache.mahout.math
Class SequentialAccessSparseVectorWritable

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

public class SequentialAccessSparseVectorWritable
extends SequentialAccessSparseVector
implements org.apache.hadoop.io.Writable


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.mahout.math.Vector
Vector.Element
 
Field Summary
 
Fields inherited from class org.apache.mahout.math.SequentialAccessSparseVector
values
 
Fields inherited from class org.apache.mahout.math.AbstractVector
lengthSquared, size
 
Constructor Summary
SequentialAccessSparseVectorWritable()
           
SequentialAccessSparseVectorWritable(SequentialAccessSparseVector vector)
           
 
Method Summary
 void readFields(java.io.DataInput dataInput)
           
 void write(java.io.DataOutput dataOutput)
           
 
Methods inherited from class org.apache.mahout.math.SequentialAccessSparseVector
clone, dot, equals, getElement, getNumNondefaultElements, getQuick, iterateAll, iterateNonZero, like, like, matrixLike, setQuick
 
Methods inherited from class org.apache.mahout.math.AbstractVector
addTo, aggregate, aggregate, asFormatString, assign, 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

SequentialAccessSparseVectorWritable

public SequentialAccessSparseVectorWritable(SequentialAccessSparseVector vector)

SequentialAccessSparseVectorWritable

public SequentialAccessSparseVectorWritable()
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.