Package io.debezium.crdt
Interface DeltaCount
- All Known Subinterfaces:
DeltaCounter
- All Known Implementing Classes:
StateBasedPNDeltaCounter
A
Count that also tracks changes to the value within the last interval.-
Method Summary
Modifier and TypeMethodDescriptionGet the changes in the current value during the last interval.Get the value of this count prior to thechanges.default booleanDetermine if there are any changes in this count.Methods inherited from interface io.debezium.crdt.GCount
getIncrementMethods inherited from interface io.debezium.crdt.PNCount
get, getDecrement
-
Method Details
-
getChanges
PNCount getChanges()Get the changes in the current value during the last interval.- Returns:
- the changes in the value during the last interval; never null
-
hasChanges
default boolean hasChanges()Determine if there are any changes in this count.- Returns:
trueif there are non-zerochanges, orfalseotherwise
-
getPriorCount
Count getPriorCount()Get the value of this count prior to thechanges.- Returns:
- the prior count; never null
-