Re: MapState in flink

2020-06-14 Thread Congxian Qiu
Hi

Could you please share why you need `MapState` instead
of `MapState>`

Best,
Congxian


Oytun Tez  于2020年6月14日周日 上午3:39写道:

> Correct me @everyone if I'm wrong, but you cannot keep State inside State
> in that way. So change your signature to: MapState>
>
> The underlying mechanism wouldn't make sense in this state-inside-state
> shape.
>
>
>
>  --
>
> [image: MotaWord]
> Oytun Tez
> M O T A W O R D | CTO & Co-Founder
> oy...@motaword.com
>
>   <https://www.motaword.com/blog>
>
>
> On Sat, Jun 13, 2020 at 3:32 PM Jaswin Shah 
> wrote:
>
>> I need some representation like this:
>>
>>
>> --
>> *From:* Jaswin Shah 
>> *Sent:* 14 June 2020 01:01
>> *To:* user@flink.apache.org 
>> *Subject:* MapState in flink
>>
>> Hi,
>> Can anyone please help me on how can I create a MapState of ListState in
>> flink, does flink support the same and if supports, how to declare the
>> descriptor for same state data structure?
>> If it is not supported, how may I create similar datastructure for state
>> in flink?
>>
>> Thanks,
>> Jaswin
>>
>


Re: MapState in flink

2020-06-13 Thread Oytun Tez
Correct me @everyone if I'm wrong, but you cannot keep State inside State
in that way. So change your signature to: MapState>

The underlying mechanism wouldn't make sense in this state-inside-state
shape.



 --

[image: MotaWord]
Oytun Tez
M O T A W O R D | CTO & Co-Founder
oy...@motaword.com

  <https://www.motaword.com/blog>


On Sat, Jun 13, 2020 at 3:32 PM Jaswin Shah  wrote:

> I need some representation like this:
>
>
> --
> *From:* Jaswin Shah 
> *Sent:* 14 June 2020 01:01
> *To:* user@flink.apache.org 
> *Subject:* MapState in flink
>
> Hi,
> Can anyone please help me on how can I create a MapState of ListState in
> flink, does flink support the same and if supports, how to declare the
> descriptor for same state data structure?
> If it is not supported, how may I create similar datastructure for state
> in flink?
>
> Thanks,
> Jaswin
>


Re: MapState in flink

2020-06-13 Thread Jaswin Shah
I need some representation like this:

[cid:d11ee982-30b1-463f-b755-27047b743e8d]

From: Jaswin Shah 
Sent: 14 June 2020 01:01
To: user@flink.apache.org 
Subject: MapState in flink

Hi,
Can anyone please help me on how can I create a MapState of ListState in flink, 
does flink support the same and if supports, how to declare the descriptor for 
same state data structure?
If it is not supported, how may I create similar datastructure for state in 
flink?

Thanks,
Jaswin


MapState in flink

2020-06-13 Thread Jaswin Shah
Hi,
Can anyone please help me on how can I create a MapState of ListState in flink, 
does flink support the same and if supports, how to declare the descriptor for 
same state data structure?
If it is not supported, how may I create similar datastructure for state in 
flink?

Thanks,
Jaswin