Class AvroTrevniKeyValueRecordWriter<K,V>

Type Parameters:
K - The type of key to write.
V - The type of value to write.

public class AvroTrevniKeyValueRecordWriter<K,V> extends AvroTrevniRecordWriterBase<AvroKey<K>,AvroValue<V>,GenericRecord>
Writes key/value pairs to an Trevni container file.

Each entry in the Trevni container file will be a generic record with two fields, named 'key' and 'value'. The input types may be basic Writable objects like Text or IntWritable, or they may be AvroWrapper subclasses (AvroKey or AvroValue). Writable objects will be converted to their corresponding Avro types when written to the generic record key/value pair.