Object/Trait

com.twitter.hashing

Hashable

Related Docs: trait Hashable | package hashing

Permalink

object Hashable extends LowPriorityHashable

Linear Supertypes
LowPriorityHashable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Hashable
  2. LowPriorityHashable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val CRC32_ITU: Hashable[Array[Byte], Int]

    Permalink

    The default memcache hash algorithm is the ITU-T variant of CRC-32.

  5. val FNV1A_32: Hashable[Array[Byte], Int]

    Permalink

    FNV fast hashing algorithm in 32 bits, variant with operations reversed.

    FNV fast hashing algorithm in 32 bits, variant with operations reversed.

    See also

    https://en.wikipedia.org/wiki/Fowler_Noll_Vo_hash

  6. val FNV1A_64: Hashable[Array[Byte], Long]

    Permalink

    FNV fast hashing algorithm in 64 bits, variant with operations reversed.

    FNV fast hashing algorithm in 64 bits, variant with operations reversed.

    See also

    https://en.wikipedia.org/wiki/Fowler_Noll_Vo_hash

  7. val FNV1_32: Hashable[Array[Byte], Int]

    Permalink

    FNV fast hashing algorithm in 32 bits.

    FNV fast hashing algorithm in 32 bits.

    See also

    https://en.wikipedia.org/wiki/Fowler_Noll_Vo_hash

  8. val FNV1_64: Hashable[Array[Byte], Long]

    Permalink

    FNV fast hashing algorithm in 64 bits.

    FNV fast hashing algorithm in 64 bits.

    See also

    https://en.wikipedia.org/wiki/Fowler_Noll_Vo_hash

  9. val HSIEH: Hashable[Array[Byte], Int]

    Permalink

    Paul Hsieh's hash function.

    Paul Hsieh's hash function. https://www.azillionmonkeys.com/qed/hash.html

  10. val JENKINS: Hashable[Array[Byte], Long]

    Permalink

    Jenkins Hash Function https://en.wikipedia.org/wiki/Jenkins_hash_function

  11. val MD5_LEInt: Hashable[Array[Byte], Int]

    Permalink

    Ketama's default hash algorithm: the first 4 bytes of the MD5 as a little-endian int.

  12. val MURMUR3: Hashable[Array[Byte], Int]

    Permalink

    murmur3 hash https://en.wikipedia.org/wiki/MurmurHash

  13. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. implicit def fromString[T](implicit h: Hashable[Array[Byte], T]): Hashable[String, T]

    Permalink
    Definition Classes
    LowPriorityHashable
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hash[T, R](t: T)(implicit hasher: Hashable[T, R]): R

    Permalink

    Pull the implicit Hashable instance in scope to compute hash for this type.

    Pull the implicit Hashable instance in scope to compute hash for this type.

    If in your scope, you set: implicit def hasher[T]: Hashable[T,Int] = Hashable.hashCode // Bad choice, just an example you can just call: hash("hey") : Int to get a hashvalue

  21. def hashCode[T]: Hashable[T, Int]

    Permalink
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. implicit def toInt[T](implicit h: Hashable[T, Long]): Hashable[T, Int]

    Permalink
    Definition Classes
    LowPriorityHashable
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from LowPriorityHashable

Inherited from AnyRef

Inherited from Any

Ungrouped