Skip to content

SourcePropertiesUtil

getKeyFormat

FormatInfo getKeyFormat(
  CreateSourceProperties properties,
  SourceName sourceName)

getKeyFormat requests the given CreateSourceProperties for getKeyFormat of the SourceName (if available) or throws an IllegalStateException:

Key format not present

getKeyFormat is used when:

  • CreateSourceFactory is requested to buildFormats
  • DefaultSchemaInjector is requested to getKeySchema, addSchemaFields
  • SchemaRegisterInjector is requested to registerForCreateSource

getValueFormat

FormatInfo getValueFormat(
  CreateSourceProperties properties)

getValueFormat requests the given CreateSourceProperties for getValueFormat (if available) or throws an IllegalStateException:

Value format not present

getValueFormat is used when:

  • CreateSourceFactory is requested to buildFormats
  • DefaultSchemaInjector is requested to getValueSchema, addSchemaFields
  • SchemaRegisterInjector is requested to registerForCreateSource