CreateStream¶
CreateStream is a CreateSource and a ExecutableDdlStatement that represents CREATE STREAM and ASSERT STREAM statements.
CreateStream is handled by:
- CommandFactories is used to handleCreateStream
CreateSourceFactoryis used to createStreamCommandCommandIdAssigneris requested togetTopicStreamCommandId
Creating Instance¶
CreateStream takes the following to be created:
-
NodeLocation -
SourceName -
TableElements -
orReplaceflag -
notExistsflag - CreateSourceProperties
-
isSourceflag
CreateStream is created when:
AstBuilder.Visitoris requested to parse CREATE STREAM and ASSERT STREAM statementsCreateStreamis requested to copyWith
copyWith¶
CreateSource copyWith(
TableElements elements,
CreateSourceProperties properties
)
copyWith is part of the CreateSource abstraction.
copyWith creates a new CreateStream with the given TableElements and CreateSourceProperties.
Planning¶
EngineExecutor is requested to plan CREATE STREAM statements