Hola, I have this hint in the logs for 'java.time....
# troubleshooting
m
Hola, I have this hint in the logs for 'java.time.Duration' and 'java.util.HashMap'
Class class * cannot be used as a POJO type because not all fields are valid POJO fields, and must be processed as GenericType. Please read the Flink documentation on "Data Types & Serialization" for details of the effect on performance.
Is there a Flink compatible class for Duration and HashMap?
a
m
Yes, because they are contained in an object of my app's State
I would like to improve performance as mentioned in the log
a
You can store duration as Long/Int and have public function to return it as a duration. For hashmap use
TypeInformation
and tell that it's a (for example)
Copy code
Types.MAP(Types.STRING, Types.STRING)
a
yes, you need to tell Flink how to work with this data structure