infrastructurebuilder / ibdata-reference-root

Root of IBData codebase.
0 stars 0 forks source link

Change `<String, String>` to `<String, Object>` in the inbound transformer maps #21

Closed mykelalvis closed 4 years ago

mykelalvis commented 4 years ago

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.