KsqlStream¶
KsqlStream is a StructuredDataSource with KSTREAM type.
Creating Instance¶
KsqlStream takes the following to be created:
- SQL expression
- Source name
-
LogicalSchema -
TimestampColumn -
isKsqlSinkflag -
KsqlTopic -
isSourceStreamflag
KsqlStream is created when:
DdlCommandExec.Executoris requested to execute CreateStreamCommandKsqlStreamis requested to with
with¶
DataSource with(
String sql,
LogicalSchema schema)
with is part of the DataSource abstraction.
with creates a new copy of this KsqlStream with the following changes:
- SQL expression is replaced with the current SQL expression with the given
sqlappended - LogicalSchema replaced with the given one