Re: Delete Keyed State outside of StateTTL

2021-08-31 Thread JING ZHANG
Hi, After you call `clear()`, you could be sure that they would not be returned when you query the state under the key. The state would be removed. The implication on memory occupation depends on which state backend. Different state backend may have different implication here. For example, if you u

Re: Delete Keyed State outside of StateTTL

2021-08-30 Thread narasimha
Thank JING. But I have a question here, what will happen to the keyed stream in that case? Will it be removed automatically? or will be present but the state will be empty, in that case what is the implication on memory occupation? On Tue, Aug 31, 2021 at 8:14 AM JING ZHANG wrote: > Hi, > All

Re: Delete Keyed State outside of StateTTL

2021-08-30 Thread JING ZHANG
Hi, All types of state also have a method clear() that clears the state for the currently active key, i.e. the key of the input element. Could we call the `clear()` method directly to remove the state under the specified key? Best, JING ZHANG narasimha 于2021年8月31日周二 上午9:44写道: > Hi, > > I have