A JSON-serialized representation of an Offset that is used for saving offsets to the offset log.
A JSON-serialized representation of an Offset that is used for saving offsets to the offset log. Note: We assume that equivalent/equal offsets serialize to identical JSON strings.
JSON string encoding
Equality based on JSON string representation.
Equality based on JSON string representation. We leverage the JSON representation for normalization between the Offset's in memory and on disk representations.
An offset is a monotonically increasing metric used to track progress in the computation of a stream. Since offsets are retrieved from a Source by a single thread, we know the global ordering of two Offset instances. We do assume that if two offsets are
equal
then no new data has arrived.