Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 489 for Funnel (0.05 sec)

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

     * Implementations for common types can be found in {@link Funnels}.
     *
     * <p>Note that serialization of {@linkplain BloomFilter bloom filters} requires the proper
     * serialization of funnels. When possible, it is recommended that funnels be implemented as a
     * single-element enum to maintain serialization guarantees. See Effective Java (2nd Edition), Item
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/FunnelsTest.java

            .addEqualityGroup(Funnels.longFunnel())
            .addEqualityGroup(Funnels.unencodedCharsFunnel())
            .addEqualityGroup(Funnels.stringFunnel(UTF_8))
            .addEqualityGroup(Funnels.stringFunnel(US_ASCII))
            .addEqualityGroup(
                Funnels.sequentialFunnel(Funnels.integerFunnel()),
                SerializableTester.reserialize(Funnels.sequentialFunnel(Funnels.integerFunnel())))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/BloomFilter.java

          Funnel<? super T> funnel, long expectedInsertions, double fpp) {
        return create(funnel, expectedInsertions, fpp, BloomFilterStrategies.MURMUR128_MITZ_64);
      }
    
      @VisibleForTesting
      static <T extends @Nullable Object> BloomFilter<T> create(
          Funnel<? super T> funnel, long expectedInsertions, double fpp, Strategy strategy) {
        checkNotNull(funnel);
        checkArgument(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/AbstractHasher.java

        putByte((byte) (c >>> 8));
        return this;
      }
    
      @Override
      @CanIgnoreReturnValue
      public <T extends @Nullable Object> Hasher putObject(
          @ParametricNullness T instance, Funnel<? super T> funnel) {
        funnel.funnel(instance, this);
        return this;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/hash/BloomFilterStrategies.java

        @Override
        public <T extends @Nullable Object> boolean put(
            @ParametricNullness T object,
            Funnel<? super T> funnel,
            int numHashFunctions,
            LockFreeBitArray bits) {
          long bitSize = bits.bitSize();
          long hash64 = Hashing.murmur3_128().hashObject(object, funnel).asLong();
          int hash1 = (int) hash64;
          int hash2 = (int) (hash64 >>> 32);
    
          boolean bitsChanged = false;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 10.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/hash/AbstractHasher.java

        putByte((byte) (c >>> 8));
        return this;
      }
    
      @Override
      @CanIgnoreReturnValue
      public <T extends @Nullable Object> Hasher putObject(
          @ParametricNullness T instance, Funnel<? super T> funnel) {
        funnel.funnel(instance, this);
        return this;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/HashFunction.java

      /**
       * Shortcut for {@code newHasher().putObject(instance, funnel).hash()}. The implementation
       * <i>might</i> perform better than its longhand equivalent, but should not perform worse.
       *
       * @since 14.0
       */
      <T extends @Nullable Object> HashCode hashObject(
          @ParametricNullness T instance, Funnel<? super T> funnel);
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 25 18:22:59 UTC 2021
    - 10.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/hash/HashFunction.java

      /**
       * Shortcut for {@code newHasher().putObject(instance, funnel).hash()}. The implementation
       * <i>might</i> perform better than its longhand equivalent, but should not perform worse.
       *
       * @since 14.0
       */
      <T extends @Nullable Object> HashCode hashObject(
          @ParametricNullness T instance, Funnel<? super T> funnel);
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 25 18:22:59 UTC 2021
    - 10.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/hash/AbstractCompositeHashFunction.java

            }
            return this;
          }
    
          @Override
          public <T extends @Nullable Object> Hasher putObject(
              @ParametricNullness T instance, Funnel<? super T> funnel) {
            for (Hasher hasher : hashers) {
              hasher.putObject(instance, funnel);
            }
            return this;
          }
    
          @Override
          public HashCode hash() {
            return makeHash(hashers);
          }
        };
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 5.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/hash/BloomFilterTest.java

            .addEqualityGroup(BloomFilter.create(Funnels.byteArrayFunnel(), 100, 0.01))
            .addEqualityGroup(BloomFilter.create(Funnels.byteArrayFunnel(), 100, 0.02))
            .addEqualityGroup(BloomFilter.create(Funnels.byteArrayFunnel(), 200, 0.01))
            .addEqualityGroup(BloomFilter.create(Funnels.byteArrayFunnel(), 200, 0.02))
            .addEqualityGroup(BloomFilter.create(Funnels.unencodedCharsFunnel(), 100, 0.01))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top