MicroBatchReadSupport Contract — Data Sources with MicroBatchReaders
MicroBatchReadSupport is the abstraction of data sources with a MicroBatchReader.
ContinuousReadSupport defines a single createMicroBatchReader method that creates a MicroBatchReader.
|
1 2 3 4 5 6 7 8 |
MicroBatchReader createMicroBatchReader( Optional<StructType> schema, String checkpointLocation, DataSourceOptions options) |
createMicroBatchReader is used when:
-
MicroBatchExecutionis requested for the analyzed logical plan (and creates a StreamingExecutionRelation for a StreamingRelationV2 with aMicroBatchReadSupportdata source) -
DataStreamReaderis requested to create a streaming query for a MicroBatchReadSupport data source
| MicroBatchReadSupport | Description |
|---|---|
spark技术分享