HomeSort by relevance Sort by last modified time
    Searched refs:Funnel (Results 1 - 25 of 47) sorted by null

1 2

  /external/guava/guava/src/com/google/common/hash/
Funnels.java 37 * Returns a funnel that extracts the bytes from a {@code byte} array.
39 public static Funnel<byte[]> byteArrayFunnel() {
43 private enum ByteArrayFunnel implements Funnel<byte[]> {
46 public void funnel(byte[] from, PrimitiveSink into) { method in class:Funnels.ByteArrayFunnel
56 * Returns a funnel that extracts the characters from a {@code CharSequence}, a character at a
62 public static Funnel<CharSequence> unencodedCharsFunnel() {
66 private enum UnencodedCharsFunnel implements Funnel<CharSequence> {
69 public void funnel(CharSequence from, PrimitiveSink into) { method in class:Funnels.UnencodedCharsFunnel
79 * Returns a funnel that encodes the characters of a {@code CharSequence} with the specified
84 public static Funnel<CharSequence> stringFunnel(Charset charset)
95 public void funnel(CharSequence from, PrimitiveSink into) { method in class:Funnels.StringCharsetFunnel
105 StringCharsetFunnel funnel = (StringCharsetFunnel) o; local
146 public void funnel(Integer from, PrimitiveSink into) { method in class:Funnels.IntegerFunnel
172 public void funnel(Iterable<? extends E> from, PrimitiveSink into) { method in class:Funnels.SequentialFunnel
184 SequentialFunnel<?> funnel = (SequentialFunnel<?>) o; local
207 public void funnel(Long from, PrimitiveSink into) { method in class:Funnels.LongFunnel
    [all...]
Funnel.java 30 * public enum PersonFunnel implements Funnel<Person> {
32 * public void funnel(Person person, PrimitiveSink into) {
43 public interface Funnel<T> extends Serializable {
52 void funnel(T from, PrimitiveSink into); method in interface:Funnel
BloomFilter.java 75 <T> boolean put(T object, Funnel<? super T> funnel, int numHashFunctions, BitArray bits);
82 T object, Funnel<? super T> funnel, int numHashFunctions, BitArray bits);
100 /** The funnel to translate Ts to bytes */
101 private final Funnel<? super T> funnel; field in class:BloomFilter
111 private BloomFilter(BitArray bits, int numHashFunctions, Funnel<? super T> funnel,
119 this.funnel = checkNotNull(funnel)
    [all...]
HashFunction.java 102 * T} provided that you implement a {@link Funnel Funnel<T>} to specify how to "feed" data
204 * Shortcut for {@code newHasher().putObject(instance, funnel).hash()}. The implementation
209 <T> HashCode hashObject(T instance, Funnel<? super T> funnel);
Hasher.java 91 * A simple convenience for {@code funnel.funnel(object, this)}.
93 <T> Hasher putObject(T instance, Funnel<? super T> funnel);
BloomFilterStrategies.java 45 @Override public <T> boolean put(T object, Funnel<? super T> funnel,
48 long hash64 = Hashing.murmur3_128().hashObject(object, funnel).asLong();
64 @Override public <T> boolean mightContain(T object, Funnel<? super T> funnel,
67 long hash64 = Hashing.murmur3_128().hashObject(object, funnel).asLong();
92 public <T> boolean put(T object, Funnel<? super T> funnel,
95 byte[] bytes = Hashing.murmur3_128().hashObject(object, funnel).getBytesInternal();
110 public <T> boolean mightContain(T object, Funnel<? super T> funnel
    [all...]
AbstractNonStreamingHashFunction.java 44 @Override public <T> HashCode hashObject(T instance, Funnel<? super T> funnel) {
45 return newHasher().putObject(instance, funnel).hash();
138 public <T> Hasher putObject(T instance, Funnel<? super T> funnel) {
139 funnel.funnel(instance, this);
AbstractStreamingHashFunction.java 36 @Override public <T> HashCode hashObject(T instance, Funnel<? super T> funnel) {
37 return newHasher().putObject(instance, funnel).hash();
222 public final <T> Hasher putObject(T instance, Funnel<? super T> funnel) {
223 funnel.funnel(instance, this);
AbstractByteHasher.java 118 public <T> Hasher putObject(T instance, Funnel<? super T> funnel) {
119 funnel.funnel(instance, this);
AbstractCompositeHashFunction.java 139 @Override public <T> Hasher putObject(T instance, Funnel<? super T> funnel) {
141 hasher.putObject(instance, funnel);
  /external/caliper/caliper/src/main/java/com/google/caliper/model/
StringMapFunnel.java 19 import com.google.common.hash.Funnel;
26 * A simple funnel that inserts string map entries into a funnel in iteration order.
28 enum StringMapFunnel implements Funnel<Map<String, String>> {
32 public void funnel(Map<String, String> from, PrimitiveSink into) { method in class:StringMapFunnel
Host.java 26 import com.google.common.hash.Funnel;
93 enum HostFunnel implements Funnel<Host> {
96 @Override public void funnel(Host from, PrimitiveSink into) { method in class:Host.HostFunnel
97 StringMapFunnel.INSTANCE.funnel(from.properties, into);
VmSpec.java 24 import com.google.common.hash.Funnel;
91 enum VmSpecFunnel implements Funnel<VmSpec> {
94 @Override public void funnel(VmSpec from, PrimitiveSink into) { method in class:VmSpec.VmSpecFunnel
95 StringMapFunnel.INSTANCE.funnel(from.properties, into);
96 StringMapFunnel.INSTANCE.funnel(from.options, into);
BenchmarkSpec.java 26 import com.google.common.hash.Funnel;
106 enum BenchmarkSpecFunnel implements Funnel<BenchmarkSpec> {
109 @Override public void funnel(BenchmarkSpec from, PrimitiveSink into) { method in class:BenchmarkSpec.BenchmarkSpecFunnel
112 StringMapFunnel.INSTANCE.funnel(from.parameters, into);
  /external/guava/guava-tests/test/com/google/common/hash/
FunnelsTest.java 45 Funnels.byteArrayFunnel().funnel(new byte[] { 4, 3, 2, 1 }, primitiveSink);
55 Funnels.unencodedCharsFunnel().funnel("test", primitiveSink);
66 Funnels.stringFunnel(charset).funnel("test", primitiveSink);
80 Funnels.integerFunnel().funnel(value, primitiveSink);
91 Funnels.longFunnel().funnel(value, primitiveSink);
101 Funnel<Object> elementFunnel = mock(Funnel.class);
103 Funnel<Iterable<? extends Object>> sequential = Funnels.sequentialFunnel(elementFunnel);
104 sequential.funnel(Arrays.asList("foo", "bar", "baz", "quux"), primitiveSink);
106 inOrder.verify(elementFunnel).funnel("foo", primitiveSink)
    [all...]
BloomFilterTest.java 355 private static final class CustomFunnel implements Funnel<Long> {
357 public void funnel(Long value, PrimitiveSink into) { method in class:BloomFilterTest.CustomFunnel
449 Funnel<byte[]> funnel = Funnels.byteArrayFunnel(); local
450 BloomFilter<byte[]> bf = BloomFilter.create(funnel, 100);
458 assertEquals(bf, BloomFilter.readFrom(new ByteArrayInputStream(out.toByteArray()), funnel));
HashTestUtils.java 84 static final Funnel<Object> BAD_FUNNEL = new Funnel<Object>() {
85 @Override public void funnel(Object object, PrimitiveSink bytePrimitiveSink) {
232 * Test that the hash function contains no funnels. A funnel is a situation where a set of input
  /external/dagger2/lib/
google-java-format-0.1-20151017.042846-2.jar 
  /external/guice/lib/
guava-16.0.1.jar 
  /prebuilts/devtools/tools/lib/
guava-17.0.jar 
  /prebuilts/misc/common/android-support-test/espresso/
espresso-core-2.2.2-release-no-dep.jar 
  /prebuilts/misc/common/guava/
guava-15.0.jar 
  /prebuilts/tools/common/google-java-format/
google-java-format-1.0-all-deps.jar 
  /prebuilts/tools/common/m2/repository/com/google/guava/guava/15.0/
guava-15.0.jar 
  /prebuilts/tools/common/m2/repository/com/google/guava/guava/17.0/
guava-17.0.jar 

Completed in 1215 milliseconds

1 2