Some transformers accepted Map as their their inbound type, but it was of type Map<String,String>. While that's valid, it's not easy to enforce. It's easier to always use a string key (a very common paradigm) and an Object value.
This allows us to use the GenericRecordMapProxy as the outbound of a transformation as well as the inbound. We just wrap the GenericRecord in a GenericRecordMapProxy and it becomes accessible on both sides.
Some transformers accepted
Map
as their their inbound type, but it was of typeMap<String,String>
. While that's valid, it's not easy to enforce. It's easier to always use a string key (a very common paradigm) and anObject
value.This allows us to use the
GenericRecordMapProxy
as the outbound of a transformation as well as the inbound. We just wrap theGenericRecord
in aGenericRecordMapProxy
and it becomes accessible on both sides.