DeltaCalculator class

Calculates the difference between two document versions.

Constructors

DeltaCalculator()

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

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 Methods

applyDelta(Map<String, dynamic> document, Map<String, dynamic> delta) Map<String, dynamic>
Apply a delta to a document to get the updated version.
calculateDelta(Map<String, dynamic> oldDocument, Map<String, dynamic> newDocument) Map<String, dynamic>
Calculate which fields changed between old and new versions.
calculateSavings(Map<String, dynamic> fullDocument, Map<String, dynamic> delta) double
Calculate bandwidth savings from using delta sync.