public class SpatialHash extends java.lang.Object implements HashFunction<SpatialProperties>
Constructor and Description |
---|
SpatialHash() |
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
hash(SpatialProperties spatialProps)
Maps some given data to an integer location in the implemented hash
space.
|
java.math.BigInteger |
maxValue()
Determines the maximum hash value that this hash function can produce.
|
java.math.BigInteger |
randomHash()
Returns a random location in the hash space.
|
public java.math.BigInteger hash(SpatialProperties spatialProps) throws HashException
HashFunction
hash
in interface HashFunction<SpatialProperties>
spatialProps
- Data to hash against.HashException
public java.math.BigInteger maxValue()
HashFunction
maxValue
in interface HashFunction<SpatialProperties>
public java.math.BigInteger randomHash()
HashFunction
randomHash
in interface HashFunction<SpatialProperties>