Class SupportsRealTimeRead.RecordStatus
Object
org.apache.spark.sql.connector.read.streaming.SupportsRealTimeRead.RecordStatus
- Enclosing interface:
- SupportsRealTimeRead<T>
A class to represent the status of a record to be read as the return type of nextWithTimeout.
It contains whether the next record is available and the ingestion time of the record
if the source connector provided relevant info. A list of source connector that has ingestion
time is listed below:
- Kafka when the record timestamp type is LogAppendTime
- Kinesis has ApproximateArrivalTimestamp
-
Method Summary
Modifier and TypeMethodDescriptionbooleannewStatusWithArrivalTimeMs(Long recArrivalTime) newStatusWithoutArrivalTime(boolean hasRecord)
-
Method Details
-
newStatusWithoutArrivalTime
-
newStatusWithArrivalTimeMs
-
hasRecord
public boolean hasRecord() -
recArrivalTime
-