An instance of KafkaKeyGen is used to generate a key from the row to be used by the KafkaSink when it produces a kafka message.
A KafkaPartitioner is used to generate an optional partition key for each final value.
A KafkaPartitioner is used to generate an optional partition key for each final value. If the KafkaPartitioner returns None then no partition is used when the KafkaSink proicuces a kafka message.
By default a no-op is supplied which will be used if another more specific partition is not provided.
An instance of KafkaRowConverter is used to convert an eel-sdk Row into another type that is compatible with the KafkaProducer used in the KafkaSink.
An instance of KafkaRowConverter is used to convert an eel-sdk Row into another type that is compatible with the KafkaProducer used in the KafkaSink.
Note that the KafkaSink can write to a KafkaProducer[K, Row] in which case the KafkaRowConverter can be a no-op, which will be supplied automatically.
the final type that will be written to the KafkaProducer
An instance of KafkaKeyGen is used to generate a key from the row to be used by the KafkaSink when it produces a kafka message.
If the key to be used is an Int or a String then a default HashCodeKeyGen is provided which will use the row objects hashcode if no more specific KafkaKeyGen is provided.
the key type used by the KafkaProducer passed into the KafkaSink.