SparkDataStream¶
SparkDataStream is an abstraction of readable data streams.
Contract¶
commit¶
void commit(
Offset end)
Used when:
ContinuousExecutionstream execution engine is requested to commitMicroBatchExecutionstream execution engine is requested to constructNextBatch
deserializeOffset¶
Offset deserializeOffset(
String json)
Used when:
ContinuousExecutionstream execution engine is requested to runContinuous and commitMicroBatchExecutionstream execution engine is requested to constructNextBatch and runBatch
initialOffset¶
Offset initialOffset()
Used when:
ContinuousExecutionstream execution engine is requested to runContinuousMicroBatchExecutionstream execution engine is requested to constructNextBatch and runBatch
stop¶
void stop()
Used when:
StreamExecutionis requested to stop sources