infrastructurebuilder / ibdata-reference-root

Root of IBData codebase.
0 stars 0 forks source link

Determine Symbol list of Jooq record enumeration #27

Open mykelalvis opened 4 years ago

mykelalvis commented 4 years ago

If a DataType<?> .isEnum() is true in the jooq conversion class (IBDataJooqUtils.java), then the type is treated as a string in the generated schema.

If it is is possible to get the symbol types (or somehow specify an actual enum class for a jooq EnumConverter), then IBData would probably be able to generate enumerations inside the schema and use those instead of strings for the values.

Note that nothing stops anyone from using their own enum type outside of IBData. It would be trivial to specify an enumeration that you cared about and then use MyEnum.valueOf(schemaStringValueFromAvro) to get a typed enumeration for use within transformations.