You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by ApoorvK <ap...@razorpay.com> on 2020/02/18 09:38:29 UTC
How Do i Serialize a class using default kryo and protobuf in scala
I have some case class which have primitive as well as nested class objects
hence if I add any more variable in class savepoint does not restore I read
if I can add kyroserializer on those class using google protobuf I will be
able to serialize it from state. Can anyone please share any example in
scala for the same.
--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/
Re: How Do i Serialize a class using default kryo and protobuf in
scala
Posted by Timo Walther <tw...@apache.org>.
Hi,
would Apache Avro be an option for you? Because this is currently still
the best supported format when it comes to schema upgrades as far as I
know. Maybe Gordon in CC can give your some additional hints.
Regards,
Timo
On 18.02.20 10:38, ApoorvK wrote:
> I have some case class which have primitive as well as nested class objects
> hence if I add any more variable in class savepoint does not restore I read
> if I can add kyroserializer on those class using google protobuf I will be
> able to serialize it from state. Can anyone please share any example in
> scala for the same.
>
>
>
> --
> Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/
>