Github user aljoscha commented on the pull request:
https://github.com/apache/flink/pull/1347#issuecomment-156104558
I limited the interface on purpose. I think for most purposes it should be
sufficient and having it in this limited form allows us to to incremental
checkpoints very easily. If we only allow adding elements and clearing the
whole state you immediately know, for example, what you have to checkpoint if
you do an incremental checkpoint. If we allow arbitrary modifications of the
list state we loose that or need to use work-arounds. (I think for that case
users would have to use a ValueState that contains a List, for example.)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---