Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 384 for Funnels (0.38 seconds)

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

    import java.nio.charset.Charset;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Funnels for common types. All implementations are serializable.
     *
     * @author Dimitris Andreou
     * @since 11.0
     */
    @Beta
    public final class Funnels {
      private Funnels() {}
    
      /** Returns a funnel that extracts the bytes from a {@code byte} array. */
      public static Funnel<byte[]> byteArrayFunnel() {
        return ByteArrayFunnel.INSTANCE;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  2. 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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 2.1K bytes
    - Click Count (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(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 10 22:28:12 GMT 2026
    - 27.6K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/hash/FunnelsTest.java

    package com.google.common.hash;
    
    import static com.google.common.hash.Funnels.byteArrayFunnel;
    import static com.google.common.hash.Funnels.integerFunnel;
    import static com.google.common.hash.Funnels.longFunnel;
    import static com.google.common.hash.Funnels.sequentialFunnel;
    import static com.google.common.hash.Funnels.stringFunnel;
    import static com.google.common.hash.Funnels.unencodedCharsFunnel;
    import static com.google.common.truth.Truth.assertThat;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 6.2K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/hash/HashTestUtils.java

                  + Integer.toHexString(expected)
                  + " got: "
                  + Integer.toHexString(verification));
        }
      }
    
      static final Funnel<Object> BAD_FUNNEL =
          new Funnel<Object>() {
            @Override
            public void funnel(Object object, PrimitiveSink bytePrimitiveSink) {
              bytePrimitiveSink.putInt(object.hashCode());
            }
          };
    
      enum RandomHasherAction {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 28 18:19:59 GMT 2025
    - 25.6K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/hash/Murmur3Hash128Test.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.hash;
    
    import static com.google.common.hash.Funnels.byteArrayFunnel;
    import static com.google.common.hash.Hashing.murmur3_128;
    import static com.google.common.truth.Truth.assertThat;
    import static java.nio.charset.StandardCharsets.UTF_8;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/hash/BloomFilterTest.java

    package com.google.common.hash;
    
    import static com.google.common.hash.BloomFilter.toBloomFilter;
    import static com.google.common.hash.Funnels.byteArrayFunnel;
    import static com.google.common.hash.Funnels.integerFunnel;
    import static com.google.common.hash.Funnels.stringFunnel;
    import static com.google.common.hash.Funnels.unencodedCharsFunnel;
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.truth.Truth.assertWithMessage;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 23K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.hash;
    
    import static com.google.common.hash.Funnels.byteArrayFunnel;
    import static com.google.common.hash.Hashing.murmur3_32;
    import static com.google.common.hash.Hashing.murmur3_32_fixed;
    import static java.nio.charset.StandardCharsets.UTF_16;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.hash;
    
    import static com.google.common.hash.Funnels.byteArrayFunnel;
    import static com.google.common.hash.Hashing.murmur3_32;
    import static com.google.common.hash.Hashing.murmur3_32_fixed;
    import static java.nio.charset.StandardCharsets.UTF_16;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/io/ByteSource.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.Ascii;
    import com.google.common.base.Optional;
    import com.google.common.collect.ImmutableList;
    import com.google.common.hash.Funnels;
    import com.google.common.hash.HashCode;
    import com.google.common.hash.HashFunction;
    import com.google.common.hash.Hasher;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.io.BufferedInputStream;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 25.7K bytes
    - Click Count (0)
Back to Top