org.apache.mahout.cf.taste.hadoop
Class ItemItemWritable
java.lang.Object
org.apache.mahout.cf.taste.hadoop.ItemItemWritable
- All Implemented Interfaces:
- java.lang.Comparable<ItemItemWritable>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<ItemItemWritable>
public final class ItemItemWritable
- extends java.lang.Object
- implements org.apache.hadoop.io.WritableComparable<ItemItemWritable>
A WritableComparable
encapsulating two items.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ItemItemWritable
public ItemItemWritable()
ItemItemWritable
public ItemItemWritable(long itemAID,
long itemBID)
getItemAID
public long getItemAID()
getItemBID
public long getItemBID()
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
read
public static ItemItemWritable read(java.io.DataInput in)
throws java.io.IOException
- Throws:
java.io.IOException
compareTo
public int compareTo(ItemItemWritable that)
- Specified by:
compareTo
in interface java.lang.Comparable<ItemItemWritable>
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.