CreateSource¶
CreateSource
is an extension of the Statement abstraction for CREATE SOURCE statements.
Contract¶
copyWith¶
CreateSource copyWith(
TableElements elements,
CreateSourceProperties properties)
Overrides TableElements
and CreateSourceProperties
of this CreateSource
Used when:
StatementRewriter.Rewriter
is requested tovisitCreateStream
andvisitCreateTable
DefaultFormatInjector
is requested toinjectForCreateStatement
DefaultSchemaInjector
is requested toaddSchemaFields
SourcePropertyInjector
is requested tobuildConfiguredStatement
TopicCreateInjector
is requested toinjectForCreateSource
getSourceType¶
SourceType getSourceType()
Implementations¶
Creating Instance¶
CreateSource
takes the following to be created:
-
NodeLocation
-
SourceName
-
TableElements
-
orReplace
flag -
notExists
flag - CreateSourceProperties
-
isSource
flag
Abstract Class
CreateSource
is an abstract class and cannot be created directly. It is created indirectly for the concrete CreateSources.