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:
SchemaKSourceFactory
is requested to buildWindowedStream, buildStream, buildWindowedTable, buildTableKsqlStream
is requested towith
KsqlTable
is requested towith
StructuredDataSource
is requested for the PROPERTIESSourceDescriptionFactory
is requested tocreate
isSource¶
boolean isSource()
Used when:
AlterSourceFactory
is requested tocreate
CreateSourceFactory
is requested to throwIfCreateOrReplaceOnSourceStreamOrTableDropSourceFactory
is requested tocreate
EngineExecutor
is requested to execute a planTopicDeleteInjector
is requested toinject
KsqlStream
is requested towith
KsqlTable
is requested towith
InsertValuesExecutor
is 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.Executor
is requested to execute AlterSourceCommand