Class Offset
Object
org.apache.spark.sql.connector.read.streaming.Offset
An abstract representation of progress through a 
MicroBatchStream or
 ContinuousStream.
 During execution, offsets provided by the data source implementation will be logged and used as restart checkpoints. Each source should provide an offset implementation which the source can use to reconstruct a position in the stream up to which data has been seen/processed.
- Since:
- 3.0.0
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
Offsetpublic Offset()
 
- 
- 
Method Details- 
jsonA 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. - Returns:
- JSON string encoding
 
- 
equalsEquality based on JSON string representation. We leverage the JSON representation for normalization between the Offset's in deserialized and serialized representations.
- 
hashCodepublic int hashCode()
- 
toString
 
-