org.unigram.likelike.lsh.function
Class CalcHashValue

java.lang.Object
  extended by org.unigram.likelike.lsh.function.CalcHashValue

public class CalcHashValue
extends java.lang.Object

Calculate the hashed value for input.


Constructor Summary
CalcHashValue()
          Constructor.
 
Method Summary
 java.lang.Long run(long value, long hashSeed)
          Create hashed value from the given parameter and seed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalcHashValue

public CalcHashValue()
Constructor.

Method Detail

run

public java.lang.Long run(long value,
                          long hashSeed)
Create hashed value from the given parameter and seed. NOTE: applied 64 bit hash function by Thomas Wang.

Parameters:
value - input
hashSeed - seed value for hash function
Returns:
hashed value