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 interface
Hasher
APrimitiveSink
that 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) class
AbstractByteHasher
AbstractHasher
that handles converting primitives to bytes using a scratchByteBuffer
and streams all bytes to a sink to compute the hash.(package private) class
AbstractHasher
An abstract implementation ofHasher
, which only requires subtypes to implementHasher.putByte(byte)
.private class
AbstractNonStreamingHashFunction.BufferingHasher
In-memory stream-based implementation of Hasher.(package private) class
AbstractStreamingHasher
A convenience base class for implementors ofHasher
; handles accumulating data until an entire "chunk" (of implementation-dependent length) is ready to be hashed.private class
ChecksumHashFunction.ChecksumHasher
Hasher that updates a checksum.(package private) static class
Crc32cHashFunction.Crc32cHasher
private static class
MacHashFunction.MacHasher
Hasher that updates aMac
(message authentication code).private static class
MessageDigestHashFunction.MessageDigestHasher
Hasher that updates a message digest.private static class
Murmur3_128HashFunction.Murmur3_128Hasher
private static class
Murmur3_32HashFunction.Murmur3_32Hasher
private static class
SipHashFunction.SipHasher
Fields in com.google.common.hash declared as PrimitiveSink Modifier and Type Field Description (package private) PrimitiveSink
Funnels.SinkAsStream. sink
Methods in com.google.common.hash that return PrimitiveSink Modifier and Type Method Description PrimitiveSink
PrimitiveSink. putBoolean(boolean b)
Puts a boolean into this sink.PrimitiveSink
PrimitiveSink. putByte(byte b)
Puts a byte into this sink.PrimitiveSink
PrimitiveSink. putBytes(byte[] bytes)
Puts an array of bytes into this sink.PrimitiveSink
PrimitiveSink. putBytes(byte[] bytes, int off, int len)
Puts a chunk of an array of bytes into this sink.PrimitiveSink
PrimitiveSink. putBytes(java.nio.ByteBuffer bytes)
Puts the remaining bytes of a byte buffer into this sink.PrimitiveSink
PrimitiveSink. putChar(char c)
Puts a character into this sink.PrimitiveSink
PrimitiveSink. putDouble(double d)
Puts a double into this sink.PrimitiveSink
PrimitiveSink. putFloat(float f)
Puts a float into this sink.PrimitiveSink
PrimitiveSink. putInt(int i)
Puts an int into this sink.PrimitiveSink
PrimitiveSink. putLong(long l)
Puts a long into this sink.PrimitiveSink
PrimitiveSink. putShort(short s)
Puts a short into this sink.PrimitiveSink
PrimitiveSink. putString(java.lang.CharSequence charSequence, java.nio.charset.Charset charset)
Puts a string into this sink using the given charset.PrimitiveSink
PrimitiveSink. putUnencodedChars(java.lang.CharSequence charSequence)
Puts each 16-bit code unit from theCharSequence
into this sink.Methods in com.google.common.hash with parameters of type PrimitiveSink Modifier and Type Method Description static java.io.OutputStream
Funnels. asOutputStream(PrimitiveSink sink)
Wraps aPrimitiveSink
as anOutputStream
, so it is easy tofunnel
an object to aPrimitiveSink
if there is already a way to write the contents of the object to anOutputStream
.void
Funnel. funnel(T from, PrimitiveSink into)
Sends a stream of data from thefrom
object into the sinkinto
.void
Funnels.ByteArrayFunnel. funnel(byte[] from, PrimitiveSink into)
void
Funnels.IntegerFunnel. funnel(java.lang.Integer from, PrimitiveSink into)
void
Funnels.LongFunnel. funnel(java.lang.Long from, PrimitiveSink into)
void
Funnels.SequentialFunnel. funnel(java.lang.Iterable<? extends E> from, PrimitiveSink into)
void
Funnels.StringCharsetFunnel. funnel(java.lang.CharSequence from, PrimitiveSink into)
void
Funnels.UnencodedCharsFunnel. funnel(java.lang.CharSequence from, PrimitiveSink into)
Constructors in com.google.common.hash with parameters of type PrimitiveSink Constructor Description SinkAsStream(PrimitiveSink sink)
-