Expand description
Defines the accumulator trait and some common accumulators.
Structs§
- GCounter
Update - State for a grow-only distributed counter (GCounter CRDT).
- Max
- Re-export Max from algebra.
Newtype wrapper for an
Ordtype wherejoinismax. - Min
- Re-export Min from algebra.
Newtype wrapper for an
Ordtype wherejoinismin. - PNCounter
Update - State for an increment/decrement distributed counter (PNCounter CRDT).
- Reducer
Factory - A factory for
ErasedCommReducers. This is used to register aErasedCommReducertype. We cannot registerErasedCommReducertrait object directly because the object could have internal state, and cannot be shared. - Reducer
Spec - Serializable information needed to build a comm reducer.
- Streaming
Reducer Opts - Options for streaming reducer mode.
- Watermark
Update - Update from ranks for watermark accumulator using Last-Writer-Wins CRDT.
Enums§
- Reducer
Mode - The mode in which a reducer operates.
Traits§
- Accumulator
- An accumulator is a object that accumulates updates into a state.
- Comm
Reducer - Commutative reducer for an accumulator. This is used to coallesce updates. For example, if the accumulator is a sum, its reducer calculates and returns the sum of 2 updates. This is helpful in split ports, where a large number of updates can be reduced into a smaller number of updates before being sent to the parent port.
- Erased
Comm Reducer - Type erased version of CommReducer.
Functions§
- join_
semilattice - Create an accumulator for any JoinSemilattice type.
- sum
- Accumulate the sum of received updates.