Re: Importance of calling mapState.clear() when no entries in mapState
I think there should be no reason to do that. Best, Dawid On 24/03/2020 09:29, Ilya Karpov wrote: > Hi, > > given: > - flink 1.6.1 > - stateful function with MapState mapState = //init logic; > > Is there any reason I should call mapState.clear() if I know beforehand that > there are no entries in mapState (e.g. mapState.iterator().hasNext() returns > false)? > > Thanks in advance! signature.asc Description: OpenPGP digital signature
Importance of calling mapState.clear() when no entries in mapState
Hi, given: - flink 1.6.1 - stateful function with MapState mapState = //init logic; Is there any reason I should call mapState.clear() if I know beforehand that there are no entries in mapState (e.g. mapState.iterator().hasNext() returns false)? Thanks in advance!