Package

com.twitter

hashing

Permalink

package hashing

Visibility
  1. Public
  2. All

Type Members

  1. trait Distributor[A] extends AnyRef

    Permalink
  2. trait Hashable[-T, +R] extends (T) ⇒ R

    Permalink

    Type-class for generic hashing

  3. class KetamaDistributor[A] extends Distributor[A]

    Permalink

    Note

    Certain versions of libmemcached return subtly different results for points on ring. In order to always hash a key to the same server as the clients who depend on those versions of libmemcached, we have to reproduce their result. If the oldLibMemcachedVersionComplianceMode is true the behavior will be reproduced.

  4. case class KetamaNode[A](identifier: String, weight: Int, handle: A) extends Product with Serializable

    Permalink
  5. trait KeyHasher extends AnyRef

    Permalink

    Hashes a key into a 32-bit or 64-bit number (depending on the algorithm).

    Hashes a key into a 32-bit or 64-bit number (depending on the algorithm).

    See also

    the companion object for common implementations.

  6. trait LowPriorityHashable extends AnyRef

    Permalink
  7. class SingletonDistributor[A] extends Distributor[A]

    Permalink

Value Members

  1. object Hashable extends LowPriorityHashable

    Permalink
  2. object KeyHasher

    Permalink

    Commonly used key hashing algorithms.

    Commonly used key hashing algorithms.

    See also

    KeyHashers for Java compatible forwarders.

  3. object KeyHashers

    Permalink

    Java compatible forwarders.

Ungrouped