Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for toBloomFilter (0.04 sec)

  1. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        BloomFilter<String> bf1 = BloomFilter.create(unencodedCharsFunnel(), 2);
        bf1.put("1");
        bf1.put("2");
    
        assertEquals(bf1, Stream.of("1", "2").collect(toBloomFilter(unencodedCharsFunnel(), 2)));
        assertEquals(bf1, Stream.of("2", "1").collect(toBloomFilter(unencodedCharsFunnel(), 2)));
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:19:59 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/BloomFilter.java

       */
      @IgnoreJRERequirement // Users will use this only if they're already using streams.
      public static <T extends @Nullable Object> Collector<T, ?, BloomFilter<T>> toBloomFilter(
          Funnel<? super T> funnel, long expectedInsertions) {
        return toBloomFilter(funnel, expectedInsertions, 0.03);
      }
    
      /**
       * Returns a {@code Collector} expecting the specified number of insertions, and yielding a {@link
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 19:23:59 UTC 2025
    - 26.9K bytes
    - Viewed (0)
Back to top