Package org.apache.cassandra.db
Class Digest
java.lang.Object
org.apache.cassandra.db.Digest
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]digest()static Digeststatic Digeststatic Digeststatic Digestlongupdate(byte[] input, int offset, int len) update(ByteBuffer input) Update the digest with the bytes from the supplied buffer.update(ByteBuffer input, int pos, int len) Update the digest with the bytes sliced from the supplied buffer.<V> Digestupdate(V input, ValueAccessor<V> accessor) updateWithBoolean(boolean val) updateWithByte(int val) <V> DigestupdateWithCounterContext(V context, ValueAccessor<V> accessor) Update the digest with the content of a counter context.updateWithInt(int val) updateWithLong(long val)
-
Method Details
-
forReadResponse
-
forSchema
-
forValidator
-
forRepairedDataTracking
-
update
-
update
-
update
Update the digest with the bytes from the supplied buffer. This does not modify the position of the supplied buffer, so callers are not required to duplicate() the source buffer before calling -
update
Update the digest with the bytes sliced from the supplied buffer. This does not modify the position of the supplied buffer, so callers are not required to duplicate() the source buffer before calling -
updateWithCounterContext
Update the digest with the content of a counter context. Note that this skips the header entirely since the header information has local meaning only, while digests are meant for comparison across nodes. This means in particular that we always have: updateDigest(ctx) == updateDigest(clearAllLocal(ctx)) -
updateWithByte
-
updateWithInt
-
updateWithLong
-
updateWithBoolean
-
digest
public byte[] digest() -
inputBytes
public long inputBytes()
-