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:
DdlCommandExecis requested for a KsqlTopic (for a CreateSourceCommand)EngineExecutoris requested for a source table planLogicalPlanneris requested to getSinkTopicKsqlAuthorizationValidatorImplis 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:
EngineExecutoris requested to getSinkTopicJoinNodeis requested to getDefaultSourceKeyFormatSerdeFeaturesFactoryis requested to convertToJsonFormatSchemaKStreamis requested to groupBySchemaKTableis requested togroupByRuntimeBuildContextis 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:
SerdeFeaturesFactoryis requested to sanitizeKeyFormatWrapping