org.apache.mahout.math.hadoop
Class DistributedRowMatrix.MatrixEntryWritable

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


Constructor Summary
DistributedRowMatrix.MatrixEntryWritable()
           
 
Method Summary
 int compareTo(DistributedRowMatrix.MatrixEntryWritable o)
           
 boolean equals(java.lang.Object o)
           
 int getCol()
           
 int getRow()
           
 double getVal()
           
 int hashCode()
           
 void readFields(java.io.DataInput in)
           
 void setCol(int col)
           
 void setRow(int row)
           
 void setVal(double val)
           
 void write(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributedRowMatrix.MatrixEntryWritable

public DistributedRowMatrix.MatrixEntryWritable()
Method Detail

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.