org.apache.mahout.math.hadoop
Class DistributedRowMatrix.MatrixEntryWritable
java.lang.Object
org.apache.mahout.math.hadoop.DistributedRowMatrix.MatrixEntryWritable
- All Implemented Interfaces:
- java.lang.Comparable<DistributedRowMatrix.MatrixEntryWritable>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<DistributedRowMatrix.MatrixEntryWritable>
- Enclosing class:
- DistributedRowMatrix
public static class DistributedRowMatrix.MatrixEntryWritable
- extends java.lang.Object
- implements org.apache.hadoop.io.WritableComparable<DistributedRowMatrix.MatrixEntryWritable>
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
DistributedRowMatrix.MatrixEntryWritable
public DistributedRowMatrix.MatrixEntryWritable()
getRow
public int getRow()
setRow
public void setRow(int row)
getCol
public int getCol()
setCol
public void setCol(int col)
getVal
public double getVal()
setVal
public void setVal(double val)
compareTo
public int compareTo(DistributedRowMatrix.MatrixEntryWritable o)
- Specified by:
compareTo
in interface java.lang.Comparable<DistributedRowMatrix.MatrixEntryWritable>
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
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
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.