org.unigram.likelike.lsh.function
Class MinWiseFunction

java.lang.Object
  extended by org.unigram.likelike.lsh.function.MinWiseFunction
All Implemented Interfaces:
IHashFunction

public class MinWiseFunction
extends java.lang.Object
implements IHashFunction

MinWiseFunction.


Constructor Summary
MinWiseFunction(org.apache.hadoop.conf.Configuration conf)
          Constructor.
 
Method Summary
 org.apache.hadoop.io.LongWritable returnClusterId(java.util.Set<java.lang.Long> featureVector, long seed)
          Return cluster id on the hash value for input feature vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinWiseFunction

public MinWiseFunction(org.apache.hadoop.conf.Configuration conf)
Constructor.

Parameters:
conf - get parameters
Method Detail

returnClusterId

public org.apache.hadoop.io.LongWritable returnClusterId(java.util.Set<java.lang.Long> featureVector,
                                                         long seed)
Return cluster id on the hash value for input feature vector.

Specified by:
returnClusterId in interface IHashFunction
Parameters:
featureVector - feature vector
seed - hash seed
Returns:
cluster id