Package org.greenrobot.essentials.hash
Class Murmur3A
java.lang.Object
org.greenrobot.essentials.hash.Murmur3A
- All Implemented Interfaces:
Checksum
Murmur3A (murmurhash3_x86_32)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate intprivate intprivate intprivate intprivate static PrimitiveArrayUtilsprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidapplyK1(int k1) longgetValue()voidreset()voidupdate(byte[] b) voidupdate(byte[] b, int off, int len) voidupdate(int b) voidupdateBoolean(boolean value) updates a byte with 0 for false and 1 for truevoidupdateDouble(double number) voidupdateFloat(float number) voidupdateInt(int value) voidupdateInt(int... values) voidupdateLong(long value) voidupdateLong(long... values) voidupdateShort(short value) voidupdateShort(short... values)
-
Field Details
-
primitiveArrayUtils
-
C1
private static final int C1- See Also:
-
C2
private static final int C2- See Also:
-
seed
private final int seed -
h1
private int h1 -
length
private int length -
partialK1
private int partialK1 -
partialK1Pos
private int partialK1Pos
-
-
Constructor Details
-
Murmur3A
public Murmur3A() -
Murmur3A
public Murmur3A(int seed)
-
-
Method Details
-
update
public void update(int b) -
update
public void update(byte[] b, int off, int len) -
update
public void update(byte[] b) -
updateShort
public void updateShort(short value) -
updateShort
public void updateShort(short... values) -
updateInt
public void updateInt(int value) -
updateInt
public void updateInt(int... values) -
updateLong
public void updateLong(long value) -
updateLong
public void updateLong(long... values) -
updateFloat
public void updateFloat(float number) -
updateDouble
public void updateDouble(double number) -
updateBoolean
public void updateBoolean(boolean value) updates a byte with 0 for false and 1 for true -
applyK1
private void applyK1(int k1) -
getValue
public long getValue() -
reset
public void reset()
-