KeyFormat¶
Creating Instance¶
KeyFormat
takes the following to be created:
- Format Specification (
FormatInfo
) -
SerdeFeatures
- Window Specification (
WindowInfo
)
KeyFormat
is created using the following:
Creating KeyFormat Instance¶
KeyFormat of(
FormatInfo format,
SerdeFeatures features,
Optional<WindowInfo> windowInfo)
of
creates a KeyFormat.
of
is used when:
DdlCommandExec
is requested for a KsqlTopic (for a CreateSourceCommand)EngineExecutor
is requested for a source table planLogicalPlanner
is requested to getSinkTopicKsqlAuthorizationValidatorImpl
is requested togetCreateAsSelectSinkTopic
Creating Non-Windowed KeyFormat Instance¶
KeyFormat nonWindowed(
FormatInfo format,
SerdeFeatures features)
nonWindowed
creates a KeyFormat with no window spec.
nonWindowed
is used when:
EngineExecutor
is requested to getSinkTopicJoinNode
is requested to getDefaultSourceKeyFormatSerdeFeaturesFactory
is requested to convertToJsonFormatSchemaKStream
is requested to groupBySchemaKTable
is requested togroupBy
RuntimeBuildContext
is requested to buildKeySerde
withSerdeFeatures¶
KeyFormat withSerdeFeatures(
SerdeFeatures additionalFeatures)
withSerdeFeatures
copies this KeyFormat
with the SerdeFeatures with the given additional SerdeFeatures
(possibly overriding the current features).
withSerdeFeatures
is used when:
SerdeFeaturesFactory
is requested to sanitizeKeyFormatWrapping