Uses of Interface
com.google.common.hash.PrimitiveSink
-
Packages that use PrimitiveSink Package Description com.google.common.hash Hash functions and related structures. -
-
Uses of PrimitiveSink in com.google.common.hash
Subinterfaces of PrimitiveSink in com.google.common.hash Modifier and Type Interface Description interfaceHasherAPrimitiveSinkthat can compute a hash code after reading the input.Classes in com.google.common.hash that implement PrimitiveSink Modifier and Type Class Description (package private) classAbstractByteHasherAbstractHasherthat handles converting primitives to bytes using a scratchByteBufferand streams all bytes to a sink to compute the hash.(package private) classAbstractHasherAn abstract implementation ofHasher, which only requires subtypes to implementHasher.putByte(byte).private classAbstractNonStreamingHashFunction.BufferingHasherIn-memory stream-based implementation of Hasher.(package private) classAbstractStreamingHasherA convenience base class for implementors ofHasher; handles accumulating data until an entire "chunk" (of implementation-dependent length) is ready to be hashed.private classChecksumHashFunction.ChecksumHasherHasher that updates a checksum.(package private) static classCrc32cHashFunction.Crc32cHasherprivate static classMacHashFunction.MacHasherHasher that updates aMac(message authentication code).private static classMessageDigestHashFunction.MessageDigestHasherHasher that updates a message digest.private static classMurmur3_128HashFunction.Murmur3_128Hasherprivate static classMurmur3_32HashFunction.Murmur3_32Hasherprivate static classSipHashFunction.SipHasherFields in com.google.common.hash declared as PrimitiveSink Modifier and Type Field Description (package private) PrimitiveSinkFunnels.SinkAsStream. sinkMethods in com.google.common.hash that return PrimitiveSink Modifier and Type Method Description PrimitiveSinkPrimitiveSink. putBoolean(boolean b)Puts a boolean into this sink.PrimitiveSinkPrimitiveSink. putByte(byte b)Puts a byte into this sink.PrimitiveSinkPrimitiveSink. putBytes(byte[] bytes)Puts an array of bytes into this sink.PrimitiveSinkPrimitiveSink. putBytes(byte[] bytes, int off, int len)Puts a chunk of an array of bytes into this sink.PrimitiveSinkPrimitiveSink. putBytes(java.nio.ByteBuffer bytes)Puts the remaining bytes of a byte buffer into this sink.PrimitiveSinkPrimitiveSink. putChar(char c)Puts a character into this sink.PrimitiveSinkPrimitiveSink. putDouble(double d)Puts a double into this sink.PrimitiveSinkPrimitiveSink. putFloat(float f)Puts a float into this sink.PrimitiveSinkPrimitiveSink. putInt(int i)Puts an int into this sink.PrimitiveSinkPrimitiveSink. putLong(long l)Puts a long into this sink.PrimitiveSinkPrimitiveSink. putShort(short s)Puts a short into this sink.PrimitiveSinkPrimitiveSink. putString(java.lang.CharSequence charSequence, java.nio.charset.Charset charset)Puts a string into this sink using the given charset.PrimitiveSinkPrimitiveSink. putUnencodedChars(java.lang.CharSequence charSequence)Puts each 16-bit code unit from theCharSequenceinto this sink.Methods in com.google.common.hash with parameters of type PrimitiveSink Modifier and Type Method Description static java.io.OutputStreamFunnels. asOutputStream(PrimitiveSink sink)Wraps aPrimitiveSinkas anOutputStream, so it is easy tofunnelan object to aPrimitiveSinkif there is already a way to write the contents of the object to anOutputStream.voidFunnel. funnel(T from, PrimitiveSink into)Sends a stream of data from thefromobject into the sinkinto.voidFunnels.ByteArrayFunnel. funnel(byte[] from, PrimitiveSink into)voidFunnels.IntegerFunnel. funnel(java.lang.Integer from, PrimitiveSink into)voidFunnels.LongFunnel. funnel(java.lang.Long from, PrimitiveSink into)voidFunnels.SequentialFunnel. funnel(java.lang.Iterable<? extends E> from, PrimitiveSink into)voidFunnels.StringCharsetFunnel. funnel(java.lang.CharSequence from, PrimitiveSink into)voidFunnels.UnencodedCharsFunnel. funnel(java.lang.CharSequence from, PrimitiveSink into)Constructors in com.google.common.hash with parameters of type PrimitiveSink Constructor Description SinkAsStream(PrimitiveSink sink)
-