Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for consistentHash (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava/src/com/google/common/hash/Hashing.java

       */
      public static int consistentHash(HashCode hashCode, int buckets) {
        return consistentHash(hashCode.padToLong(), buckets);
      }
    
      /**
       * Assigns to {@code input} a "bucket" in the range {@code [0, buckets)}, in a uniform manner that
       * minimizes the need for remapping as {@code buckets} grows. That is, {@code consistentHash(h,
       * n)} equals:
       *
       * <ul>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 29.8K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/hash/HashingTest.java

          assertEquals(golden100[i], Hashing.consistentHash(i, 100));
        }
        assertEquals(6, Hashing.consistentHash(10863919174838991L, 11));
        assertEquals(3, Hashing.consistentHash(2016238256797177309L, 11));
        assertEquals(5, Hashing.consistentHash(1673758223894951030L, 11));
        assertEquals(80343, Hashing.consistentHash(2, 100001));
        assertEquals(22152, Hashing.consistentHash(2201, 100001));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 26.7K bytes
    - Click Count (2)
Back to Top