org.apache.mahout.cf.taste.hadoop
Class EntityEntityWritable
java.lang.Object
org.apache.mahout.cf.taste.hadoop.EntityEntityWritable
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable<EntityEntityWritable>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<EntityEntityWritable>
public final class EntityEntityWritable
- extends java.lang.Object
- implements org.apache.hadoop.io.WritableComparable<EntityEntityWritable>, java.lang.Cloneable
A WritableComparable
encapsulating two items.
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
EntityEntityWritable
public EntityEntityWritable()
EntityEntityWritable
public EntityEntityWritable(long aID,
long bID)
getAID
public long getAID()
getBID
public long getBID()
set
public void set(long aID,
long bID)
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
compareTo
public int compareTo(EntityEntityWritable that)
- Specified by:
compareTo
in interface java.lang.Comparable<EntityEntityWritable>
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
clone
public EntityEntityWritable clone()
- Overrides:
clone
in class java.lang.Object
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.