Searched refs:newHasher (Results 1 - 13 of 13) sorted by relevance

/external/guava/guava/src/com/google/common/hash/
H A DHashFunction.java91 * {@link Hasher}. Obtain a new hasher from the hash function using {@link #newHasher},
94 * an {@linkplain #newHasher example} of this.)
137 * HashCode hc = hf.newHasher()
142 Hasher newHasher(); method in interface:HashFunction
145 * Begins a new hash code computation as {@link #newHasher()}, but provides a hint of the
150 Hasher newHasher(int expectedInputSize); method in interface:HashFunction
153 * Shortcut for {@code newHasher().putLong(input).hash()}; returns the hash code for the
160 * Shortcut for {@code newHasher().putBytes(input).hash()}. The implementation
167 * Shortcut for {@code newHasher().putBytes(input, off, len).hash()}. The implementation
177 * Shortcut for {@code newHasher()
[all...]
H A DAbstractStreamingHashFunction.java27 * invokes the appropriate method on {@link #newHasher()}, then return the result of
30 * <p>Invocations of {@link #newHasher(int)} also delegate to {@linkplain #newHasher()}, ignoring
37 return newHasher().putString(input).hash();
41 return newHasher().putString(input, charset).hash();
45 return newHasher().putLong(input).hash();
49 return newHasher().putBytes(input).hash();
53 return newHasher().putBytes(input, off, len).hash();
56 @Override public Hasher newHasher(int expectedInputSize) { method in class:AbstractStreamingHashFunction
58 return newHasher();
[all...]
H A DAbstractNonStreamingHashFunction.java13 * All the hash computation done using {@linkplain #newHasher()} are delegated to the {@linkplain
20 public Hasher newHasher() { method in class:AbstractNonStreamingHashFunction
25 public Hasher newHasher(int expectedInputSize) { method in class:AbstractNonStreamingHashFunction
H A DBloomFilterStrategies.java29 long hash64 = Hashing.murmur3_128().newHasher().putObject(object, funnel).hash().asLong();
44 long hash64 = Hashing.murmur3_128().newHasher().putObject(object, funnel).hash().asLong();
H A DAbstractCompositeHashFunction.java8 * An abstract composition of multiple hash functions. {@linkplain #newHasher()} delegates to the
30 public Hasher newHasher() { method in class:AbstractCompositeHashFunction
33 hashers[i] = functions[i].newHasher();
H A DMurmur3_32HashFunction.java40 @Override public Hasher newHasher() { method in class:Murmur3_32HashFunction
H A DMessageDigestHashFunction.java58 @Override public Hasher newHasher() { method in class:MessageDigestHashFunction
H A DMurmur3_128HashFunction.java42 @Override public Hasher newHasher() { method in class:Murmur3_128HashFunction
/external/guava/guava-tests/test/com/google/common/hash/
H A DAbstractNonStreamingHashFunctionTest.java23 * and checks that their results are identical, no matter which newHasher version we used.
27 new StreamingVersion().newHasher(),
28 new StreamingVersion().newHasher(52),
29 new NonStreamingVersion().newHasher(),
30 new NonStreamingVersion().newHasher(123));
51 public Hasher newHasher() { method in class:AbstractNonStreamingHashFunctionTest.StreamingVersion
H A DMurmur3Hash32Test.java33 Hasher hasher = murmur3_32(seed).newHasher();
H A DHashFunctionsTest.java46 HashCode hashcode1 = hashFunction.newHasher().putObject(o, HashTestUtils.BAD_FUNNEL).hash();
47 HashCode hashcode2 = hashFunction.newHasher().putObject(o, HashTestUtils.BAD_FUNNEL).hash();
H A DMurmur3Hash128Test.java55 byte[] hash = murmur3_128(seed).newHasher().putBytes(input).hash().asBytes();
62 Hasher hasher = murmur3_128(seed).newHasher();
H A DAbstractStreamingHasherTest.java131 Hasher controlSink = control.newHasher(1024);

Completed in 248 milliseconds