granary.ivm
Delta.Make
Make (Z) lifts events over Z.elt into Z.t deltas.
Make (Z)
Z.elt
Z.t
granary
granary.block
granary.catalog
granary.columnar
granary.encoding
granary.mirage_block
granary.parallel
granary.recovery
granary.replication
granary.sample
granary.sql
granary.storage
granary.store
granary.unix
module Z : Zset.S
val of_event : Z.elt event -> Z.t
of_event e is the Z-set delta for a single event: +1 for Insert, -1 for Delete, -old +new for Update.
of_event e
+1
Insert
-1
Delete
-old +new
Update
val of_events : Z.elt event list -> Z.t
of_events es is the sum of of_event over es (cancellations collapse, as in any Z-set).
of_events es
of_event
es