DataSource¶
DataSource is an abstraction of data sources.
Contract (Subset)¶
getDataSourceType¶
DataSourceType getDataSourceType()
DataSourceType of this DataSource
getSchema¶
LogicalSchema getSchema()
LogicalSchema of this DataSource
getTimestampColumn¶
Optional<TimestampColumn> getTimestampColumn()
Used when:
SchemaKSourceFactoryis requested to buildWindowedStream, buildStream, buildWindowedTable, buildTableKsqlStreamis requested towithKsqlTableis requested towithStructuredDataSourceis requested for the PROPERTIESSourceDescriptionFactoryis requested tocreate
isSource¶
boolean isSource()
Used when:
AlterSourceFactoryis requested tocreateCreateSourceFactoryis requested to throwIfCreateOrReplaceOnSourceStreamOrTableDropSourceFactoryis requested tocreateEngineExecutoris requested to execute a planTopicDeleteInjectoris requested toinjectKsqlStreamis requested towithKsqlTableis requested towithInsertValuesExecutoris requested togetDataSource
with¶
DataSource with(
String sql,
LogicalSchema schema)
Creates a copy of this DataSource with the given SQL appended and the given LogicalSchema
Used when:
DdlCommandExec.Executoris requested to execute AlterSourceCommand