@Evolving
public interface SparkDataStream
Data sources should implement concrete data stream interfaces:
MicroBatchStream
and ContinuousStream
.
Modifier and Type | Method and Description |
---|---|
void |
commit(Offset end)
Informs the source that Spark has completed processing all data for offsets less than or
equal to `end` and will only request offsets greater than `end` in the future.
|
Offset |
deserializeOffset(String json)
Deserialize a JSON string into an Offset of the implementation-defined offset type.
|
Offset |
initialOffset()
Returns the initial offset for a streaming query to start reading from.
|
void |
stop()
Stop this source and free any resources it has allocated.
|
Offset initialOffset()
Offset deserializeOffset(String json)
IllegalArgumentException
- if the JSON does not encode a valid offset for this readervoid commit(Offset end)
void stop()