/external/guava/guava/src/com/google/common/hash/ |
H A D | HashFunction.java | 91 * {@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 D | AbstractStreamingHashFunction.java | 27 * 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 D | AbstractNonStreamingHashFunction.java | 13 * 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 D | BloomFilterStrategies.java | 29 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 D | AbstractCompositeHashFunction.java | 8 * 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 D | Murmur3_32HashFunction.java | 40 @Override public Hasher newHasher() { method in class:Murmur3_32HashFunction
|
H A D | MessageDigestHashFunction.java | 58 @Override public Hasher newHasher() { method in class:MessageDigestHashFunction
|
H A D | Murmur3_128HashFunction.java | 42 @Override public Hasher newHasher() { method in class:Murmur3_128HashFunction
|
/external/guava/guava-tests/test/com/google/common/hash/ |
H A D | AbstractNonStreamingHashFunctionTest.java | 23 * 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 D | Murmur3Hash32Test.java | 33 Hasher hasher = murmur3_32(seed).newHasher();
|
H A D | HashFunctionsTest.java | 46 HashCode hashcode1 = hashFunction.newHasher().putObject(o, HashTestUtils.BAD_FUNNEL).hash(); 47 HashCode hashcode2 = hashFunction.newHasher().putObject(o, HashTestUtils.BAD_FUNNEL).hash();
|
H A D | Murmur3Hash128Test.java | 55 byte[] hash = murmur3_128(seed).newHasher().putBytes(input).hash().asBytes(); 62 Hasher hasher = murmur3_128(seed).newHasher();
|
H A D | AbstractStreamingHasherTest.java | 131 Hasher controlSink = control.newHasher(1024);
|