flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Wilson <fajwil...@gmail.com>
Subject Flink state: complex value state pojos vs explicitly managed fields
Date Mon, 17 Jun 2019 09:59:14 GMT
Hi,

Is it better to have one POJO value state with a collection inside or an
explicit state declaration for each member? e.g.

MyPojo {
    long id;
    List[Foo] foos;

    // getter / setters omitted
}

Or

Two managed state declarations in my process function (a value for the long
and a list for the “foos”).

It feels like former is better encapsulated but the latter gives flink more
information about the state.

Frank

Mime
View raw message