ADO.NET Provider for Apache Kafka

Build 24.0.9060

MessageKeyType

The type of data stored in message keys.

Possible Values

Null, Binary, String, Long, Integer, Float, Double, Avro, CSV, CSV_WITH_HEADERS, XML, JSON, Auto

Data Type

string

Default Value

"Null"

Remarks

By default the provider does not report message keys. To enable message keys, this property must be set to a value other than Null and MessageKeyColumn must be set to a valid column name.

See Extracting Metadata From Topics for a description of how this interacts with the TypeDetectionScheme property. SerializationFormat describes how each of these supported formats is encoded. There are three main differences between how that property and this property work:

  • Complex key columns are always prefixed with MessageKeyColumn and a dot, while primitive key columns use MessageKeyColumn as their name. For example, if MessageKeyColumn is Key, an Avro key would expose columns like Key.field1. A string key would be expose a single column called Key.
  • SerializationFormat uses NONE for binary fields while this property uses Binary.
  • The provider only supports reading key schemas from the registry when connected to a Confluent RegistryService. COnfluent registries use a naming convention that allows for both key and value schemas that cover the same topic.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060