Formatter uses writer schema ids to assure test data represent raw events data, without schema evolution (which adjusts data to reader schema).
RecordFormatter factory for kafka avro sources with avro payload.
RecordFormatter factory for kafka avro sources with json payload.
RecordFormatter factory for kafka avro sources with json payload.
Test data record is a simple record representing data of ConsumerRecord. It does not contain schema ids. Creates instance of ConsumerRecordToJsonFormatter with fixed key-value types (key and value are always deserialized to Json).
Formatter uses writer schema ids to assure test data represent raw events data, without schema evolution (which adjusts data to reader schema). Test data record contains data of ConsumerRecord and contains key and value schema ids (see [AvroSerializableConsumerRecord]).
- key type passed from KafkaAvroSourceFactory, used to determine which datumReaderWriter use (e.g. specific or generic)
- value type passed from KafkaAvroSourceFactory, used to determine which datumReaderWriter use (e.g. specific or generic)