RangeDigest class

The summary of one HLC range of a table, as CrdtTable.rangeDigest returns it: the input to range-based set reconciliation.

Constructors

RangeDigest({required int count, required List<int> fingerprint, String? minHlc, String? maxHlc})
Creates a digest. Engines build these via RangeDigestBuilder.
const

Properties

count → int
Number of records in the range.
final
fingerprint → List<int>
XOR of every record's identity hash (RangeDigestBuilder.add). 16 bytes; all zero for an empty range.
final
hashCode → int
The hash code for this object.
no setterinherited
maxHlc → String?
The highest record HLC in the range, or null when empty.
final
minHlc → String?
The lowest record HLC in the range, or null when empty.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

matches(RangeDigest other) → bool
Whether other summarises the same record set (same count and fingerprint).
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

Static Properties

empty → RangeDigest
An empty range: zero records, the zero fingerprint.
final