SerdeFeaturesFactory¶
sanitizeKeyFormat¶
KeyFormat sanitizeKeyFormat(
KeyFormat keyFormat,
List<SqlType> newKeyColumnSqlTypes,
boolean allowKeyFormatChangeToSupportNewKeySchema)
sanitizeKeyFormat
...FIXME
sanitizeKeyFormat
is used when:
SchemaKGroupedStream
is requested toaggregate
andgetKeyFormat
SchemaKStream
is requested to selectKey and groupBySchemaKTable
is requested toselectKey
andgroupBy
sanitizeKeyFormatForTypeCompatibility¶
KeyFormat sanitizeKeyFormatForTypeCompatibility(
KeyFormat keyFormat,
List<SqlType> sqlTypes)
sanitizeKeyFormatForTypeCompatibility
requests the given KeyFormat for the FormatInfo to create a Format.
sanitizeKeyFormatForTypeCompatibility
returns the KeyFormat if every SqlType (in the given sqlTypes
collection) is supported as a key type by the Format.
Otherwise, sanitizeKeyFormatForTypeCompatibility
convertToJsonFormat the given KeyFormat.