Enum Class BookKeeper.DigestType

java.lang.Object
java.lang.Enum<BookKeeper.DigestType>
org.apache.bookkeeper.client.BookKeeper.DigestType
All Implemented Interfaces:
Serializable, Comparable<BookKeeper.DigestType>, Constable
Enclosing class:
BookKeeper

public static enum BookKeeper.DigestType extends Enum<BookKeeper.DigestType>
There are 3 digest types that can be used for verification. The CRC32 is cheap to compute but does not protect against byzantine bookies (i.e., a bookie might report fake bytes and a matching CRC32). The MAC code is more expensive to compute, but is protected by a password, i.e., a bookie can't report fake bytes with a matching MAC unless it knows the password. The CRC32C, which use SSE processor instruction, has better performance than CRC32. Legacy DigestType for backward compatibility. If we want to add new DigestType, we should add it in here, client.api.DigestType and DigestType in DataFormats.proto. If the digest type is set/passed in as DUMMY, a dummy digest is added/checked. This DUMMY digest is mostly for test purposes or in situations/use-cases where digest is considered a overhead.