@InterfaceStability.Evolving public interface ContinuousReadSupport extends DataSourceV2
DataSourceV2
. Data sources can implement this interface to
provide data reading ability for continuous stream processing.Modifier and Type | Method and Description |
---|---|
ContinuousReader |
createContinuousReader(java.util.Optional<StructType> schema,
String checkpointLocation,
DataSourceOptions options)
Creates a
ContinuousReader to scan the data from this data source. |
ContinuousReader createContinuousReader(java.util.Optional<StructType> schema, String checkpointLocation, DataSourceOptions options)
ContinuousReader
to scan the data from this data source.schema
- the user provided schema, or empty() if none was providedcheckpointLocation
- a path to Hadoop FS scratch space that can be used for failure
recovery. Readers for the same logical source in the same query
will be given the same checkpointLocation.options
- the options for the returned data source reader, which is an immutable
case-insensitive string-to-string map.