org.apache.mahout.cf.taste.hadoop.als
Class IndexedVarIntWritable
java.lang.Object
org.apache.mahout.cf.taste.hadoop.als.IndexedVarIntWritable
- All Implemented Interfaces:
- Comparable<IndexedVarIntWritable>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<IndexedVarIntWritable>
public class IndexedVarIntWritable
- extends Object
- implements org.apache.hadoop.io.WritableComparable<IndexedVarIntWritable>
IndexedVarIntWritable
public IndexedVarIntWritable()
IndexedVarIntWritable
public IndexedVarIntWritable(int value,
int index)
getValue
public int getValue()
compareTo
public int compareTo(IndexedVarIntWritable other)
- Specified by:
compareTo
in interface Comparable<IndexedVarIntWritable>
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.