When Flink is trying to identify whether an object...
# troubleshooting
p
When Flink is trying to identify whether an object is a pojo or not it tests, whether all fields have respective get/set methods. Part of this test is to check that the return type of the getter is the same as the backing property. Now I want to work with a class which is generated from an XSD file. This is, where my problem begins: JAXB uses "java.lang.Boolean" for the backing property and "boolean" for the return type of the getter and Flink won't respect this discrepancy. I couldn't find a way to force JAXB to use "boolean" for everything. Does anyone have an idea how to fix this situation (on flink or jaxb side)? (I would like to skip kryo serialization in this use case)
p
You can use a
TypeInformation
to force it perhaps?
p
Not sure how to do this? I always only provided the
TypeInformation
for the root object in my
DeserializationSchema
but never for sub-ojects / fields
p
after each transformation you may call a method named
returns
and provide the typeinfo