Class Murmur3A

  • All Implemented Interfaces:
    java.util.zip.Checksum

    public class Murmur3A
    extends java.lang.Object
    implements java.util.zip.Checksum
    Murmur3A (murmurhash3_x86_32)
    • Field Detail

      • seed

        private final int seed
      • h1

        private int h1
      • length

        private int length
      • partialK1

        private int partialK1
      • partialK1Pos

        private int partialK1Pos
    • Constructor Detail

      • Murmur3A

        public Murmur3A()
      • Murmur3A

        public Murmur3A​(int seed)
    • Method Detail

      • update

        public void update​(int b)
        Specified by:
        update in interface java.util.zip.Checksum
      • update

        public void update​(byte[] b,
                           int off,
                           int len)
        Specified by:
        update in interface java.util.zip.Checksum
      • update

        public void update​(byte[] b)
        Specified by:
        update in interface java.util.zip.Checksum
      • 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()
        Specified by:
        getValue in interface java.util.zip.Checksum
      • reset

        public void reset()
        Specified by:
        reset in interface java.util.zip.Checksum