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

java.lang.Object
  extended by org.apache.mahout.cf.taste.hadoop.als.TaggedVarIntWritable
All Implemented Interfaces:
Comparable<TaggedVarIntWritable>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<TaggedVarIntWritable>

public class TaggedVarIntWritable
extends Object
implements org.apache.hadoop.io.WritableComparable<TaggedVarIntWritable>


Nested Class Summary
static class TaggedVarIntWritable.GroupingComparator
           
static class TaggedVarIntWritable.SecondarySortComparator
           
 
Constructor Summary
TaggedVarIntWritable()
           
TaggedVarIntWritable(int value, boolean tagged)
           
 
Method Summary
 int compareTo(TaggedVarIntWritable other)
           
 boolean equals(Object o)
           
 int get()
           
 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

TaggedVarIntWritable

public TaggedVarIntWritable()

TaggedVarIntWritable

public TaggedVarIntWritable(int value,
                            boolean tagged)
Method Detail

get

public int get()

compareTo

public int compareTo(TaggedVarIntWritable other)
Specified by:
compareTo in interface Comparable<TaggedVarIntWritable>

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.