org.apache.mahout.cf.taste.hadoop.als
Class IndexedVarIntWritable

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


Nested Class Summary
static class IndexedVarIntWritable.GroupingComparator
           
static class IndexedVarIntWritable.SecondarySortComparator
           
 
Constructor Summary
IndexedVarIntWritable()
           
IndexedVarIntWritable(int value, int index)
           
 
Method Summary
 int compareTo(IndexedVarIntWritable other)
           
 boolean equals(Object o)
           
 int getValue()
           
 int hashCode()
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexedVarIntWritable

public IndexedVarIntWritable()

IndexedVarIntWritable

public IndexedVarIntWritable(int value,
                             int index)
Method Detail

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.