Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for bucketCh (0.21 sec)

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

       */
      public static int consistentHash(long input, int buckets) {
        checkArgument(buckets > 0, "buckets must be positive: %s", buckets);
        LinearCongruentialGenerator generator = new LinearCongruentialGenerator(input);
        int candidate = 0;
        int next;
    
        // Jump from bucket to bucket until we go out of range
        while (true) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/HashBiMap.java

      transient int modCount;
      /** Maps a bucket to the "entry" of its first element. */
      private transient int[] hashTableKToV;
      /** Maps a bucket to the "entry" of its first element. */
      private transient int[] hashTableVToK;
      /** Maps an "entry" to the "entry" that follows it in its bucket. */
      private transient int[] nextInBucketKToV;
      /** Maps an "entry" to the "entry" that follows it in its bucket. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

              int bucket = valueEntry.smearedValueHash & mask;
              valueEntry.nextInValueBucket = hashTable[bucket];
              hashTable[bucket] = valueEntry;
            }
          }
        }
    
        @CanIgnoreReturnValue
        @Override
        public boolean remove(@CheckForNull Object o) {
          int smearedHash = Hashing.smearedHash(o);
          int bucket = smearedHash & mask();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

     * amortized) constant time operations. Expected in the hashtable sense (depends on the hash
     * function doing a good job of distributing the elements to the buckets to a distribution not far
     * from uniform), and amortized since some operations can trigger a hash table resize.
     *
     * <p>As compared with {@link java.util.LinkedHashMap}, this structure places significantly reduced
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/CompactLinkedHashSet.java

     * constant time operations. Expected in the hashtable sense (depends on the hash function doing a
     * good job of distributing the elements to the buckets to a distribution not far from uniform), and
     * amortized since some operations can trigger a hash table resize.
     *
     * <p>This implementation consumes significantly less memory than {@code java.util.LinkedHashSet} or
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        for (int i = 0; i < originalCount; i++) {
          Object key = new Object();
          Object value = new Object();
          int hash = map.hash(key);
          // chain all entries together as we only have a single bucket
          entry = segment.newEntryForTesting(key, hash, entry);
          segment.setValueForTesting(entry, value);
        }
        segment.setTableEntryForTesting(0, entry);
        segment.count = originalCount;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        for (int i = 0; i < originalCount; i++) {
          Object key = new Object();
          Object value = new Object();
          int hash = map.hash(key);
          // chain all entries together as we only have a single bucket
          entry = segment.newEntryForTesting(key, hash, entry);
          segment.setValueForTesting(entry, value);
        }
        segment.setTableEntryForTesting(0, entry);
        segment.count = originalCount;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/HashBiMap.java

        this.lastInKeyInsertionOrder = null;
        this.size = 0;
        this.mask = tableSize - 1;
        this.modCount = 0;
      }
    
      /**
       * Finds and removes {@code entry} from the bucket linked lists in both the key-to-value direction
       * and the value-to-key direction.
       */
      private void delete(BiEntry<K, V> entry) {
        int keyBucket = entry.keyHash & mask;
        BiEntry<K, V> prevBucketEntry = null;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 24.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/HashFunction.java

     *       in the hash code should be as evenly "spread out" through the hash code's bits as possible.
     *       The result is that, for example, when choosing a bucket in a hash table of size 2^8,
     *       <i>any</i> eight bits could be consistently used.
     *   <li><b>cryptographic:</b> certain hash functions such as {@link Hashing#sha512} are designed to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 25 18:22:59 GMT 2021
    - 10.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        Map<ClassWithTerribleHashCode, Integer> expected = new LinkedHashMap<>();
        Builder<ClassWithTerribleHashCode, Integer> builder = new Builder<>();
        int size = RegularImmutableMap.MAX_HASH_BUCKET_LENGTH + 10;
        for (int i = 0; i < size; i++) {
          ClassWithTerribleHashCode key = new ClassWithTerribleHashCode(i);
          builder.put(key, i);
          builder.put(key, -i);
          expected.put(key, -i);
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 13:27:08 GMT 2024
    - 41.3K bytes
    - Viewed (0)
Back to top