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.
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
Used when loading a JSON serialized offset from external storage. We are currently not responsible for converting JSON serialized data into an internal (i.e., object) representation. Sources should define a factory method in their source Offset companion objects that accepts a SerializedOffset for doing the conversion.