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.
K
the key type used by the KafkaProducer passed into the KafkaSink.
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.