Package com.scurrilous.circe.params
Class MurmurHash3Parameters
java.lang.Object
com.scurrilous.circe.params.MurmurHash3Parameters
- All Implemented Interfaces:
HashParameters
Hash parameters for MurmurHash3.
-
Constructor Summary
ConstructorsConstructorDescriptionMurmurHash3Parameters(MurmurHash3Variant variant) Constructs aMurmurHash3Parameterswith the given variant and a seed value of zero.MurmurHash3Parameters(MurmurHash3Variant variant, int seed) Constructs aMurmurHash3Parameterswith the given variant and seed value. -
Method Summary
-
Constructor Details
-
MurmurHash3Parameters
Constructs aMurmurHash3Parameterswith the given variant and a seed value of zero.- Parameters:
variant- the variant of the algorithm
-
MurmurHash3Parameters
Constructs aMurmurHash3Parameterswith the given variant and seed value.- Parameters:
variant- the variant of the algorithmseed- the seed value
-
-
Method Details
-
variant
Returns the variant of the hash algorithm.- Returns:
- the algorithm variant
-
seed
public int seed()Returns the seed value for the hash function.- Returns:
- the seed value
-
algorithm
Description copied from interface:HashParametersReturns the canonical name of the hash algorithm.- Specified by:
algorithmin interfaceHashParameters- Returns:
- the name of the hash algorithm
-