RangeDigestBuilder class

Streams records into a RangeDigest: an engine calls add once per record in the range (any order) and takes build.

A record's identity is its (key, hlc) pair — the HLC changes whenever the value does, so equal pairs mean equal record versions. The fingerprint is the XOR of the first 16 bytes of SHA-256(key ‖ 0x00 ‖ hlc): order-independent, so ranges can be summarised in one streaming pass and split without re-hashing.

Constructors

RangeDigestBuilder()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(String key, Hlc hlc) → void
Folds one record into the digest.
build() → RangeDigest
The accumulated digest.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited