org.apache.mahout.cf.taste.hadoop.similarity.item
Class CountUsersKeyWritable.CountUsersGroupComparator

java.lang.Object
  extended by org.apache.hadoop.io.WritableComparator
      extended by org.apache.mahout.cf.taste.hadoop.similarity.item.CountUsersKeyWritable.CountUsersGroupComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator, org.apache.hadoop.io.RawComparator
Enclosing class:
CountUsersKeyWritable

public static class CountUsersKeyWritable.CountUsersGroupComparator
extends org.apache.hadoop.io.WritableComparator
implements java.io.Serializable

all userIDs go to the same reducer

See Also:
Serialized Form

Constructor Summary
CountUsersKeyWritable.CountUsersGroupComparator()
           
 
Method Summary
 int compare(org.apache.hadoop.io.WritableComparable a, org.apache.hadoop.io.WritableComparable b)
           
 
Methods inherited from class org.apache.hadoop.io.WritableComparator
compare, compare, compareBytes, define, get, getKeyClass, hashBytes, newKey, readDouble, readFloat, readInt, readLong, readUnsignedShort, readVInt, readVLong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

CountUsersKeyWritable.CountUsersGroupComparator

public CountUsersKeyWritable.CountUsersGroupComparator()
Method Detail

compare

public int compare(org.apache.hadoop.io.WritableComparable a,
                   org.apache.hadoop.io.WritableComparable b)
Overrides:
compare in class org.apache.hadoop.io.WritableComparator


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