Re: How to access state from another map functions

2019-07-28 Thread Yuta Morisawa
Hi Biao Thank you for your reply. I will consulting in-memory DB. On 2019/07/29 14:52, Biao Liu wrote: Hi Yuta, No, you can't get the same state from different functions. That's not the semantics of state. And these two functions might run in different threads/processes even on different ma

Re: How to access state from another map functions

2019-07-28 Thread Biao Liu
Hi Yuta, No, you can't get the same state from different functions. That's not the semantics of state. And these two functions might run in different threads/processes even on different machines. On Mon, Jul 29, 2019 at 11:12 AM Yuta Morisawa wrote: > Hi all > > I want to use the same state for

How to access state from another map functions

2019-07-28 Thread Yuta Morisawa
Hi all I want to use the same state for multiple times. stream .keyBy(0) .map(new MyRichMapfunction) ... .keyBy(0) .map(new MyRichMapfunction2) In this snippet, I want access the same state in MyRichMapfunction and MyRichMapfunction2, but I failed in spite of keying the same key. Is there any