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:
-
MicroBatchExecution
is requested for the analyzed logical plan (and creates a StreamingExecutionRelation for a StreamingRelationV2 with aMicroBatchReadSupport
data source) -
DataStreamReader
is requested to create a streaming query for a MicroBatchReadSupport data source
MicroBatchReadSupport | Description |
---|---|