Packages

class MurmurHash[T] extends (T) ⇒ Unit

A class designed to generate well-distributed non-cryptographic hashes. It is designed to be passed to a collection's foreach method, or can take individual hash values with append. Its own hash code is set equal to the hash code of whatever it is hashing.

Annotations
@deprecated
Deprecated

(Since version 2.10.0) use the object MurmurHash3 instead

Source
MurmurHash.scala
Linear Supertypes
(T) ⇒ Unit, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MurmurHash
  2. Function1
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MurmurHash(seed: Int)

Value Members

  1. def andThen[A](g: (Unit) ⇒ A): (T) ⇒ A

    Composes two instances of Function1 in a new Function1, with this function applied first.

    Composes two instances of Function1 in a new Function1, with this function applied first.

    A

    the result type of function g

    g

    a function R => A

    returns

    a new function f such that f(x) == g(apply(x))

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  2. def append(i: Int): Unit

    Incorporate a known hash value.

  3. def apply(t: T): Unit

    Incorporate the hash value of one item.

    Incorporate the hash value of one item.

    returns

    the result of function application.

    Definition Classes
    MurmurHashFunction1
  4. def compose[A](g: (A) ⇒ T): (A) ⇒ Unit

    Composes two instances of Function1 in a new Function1, with this function applied last.

    Composes two instances of Function1 in a new Function1, with this function applied last.

    A

    the type to which function g can be applied

    g

    a function A => T1

    returns

    a new function f such that f(x) == apply(g(x))

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def hash: Int

    Retrieve the hash value

  6. def hashCode(): Int

    The hashCode method for reference types.

    The hashCode method for reference types. See hashCode in scala.Any.

    returns

    the hash code value for this object.

    Definition Classes
    MurmurHash → AnyRef → Any
  7. def reset(): Unit

    Begin a new hash using the same seed.

  8. def toString(): String

    Creates a String representation of this object.

    Creates a String representation of this object. The default representation is platform dependent. On the java platform it is the concatenation of the class name, "@", and the object's hashcode in hexadecimal.

    returns

    a String representation of the object.

    Definition Classes
    Function1 → AnyRef → Any