Re: Help with generics

2016-04-21 Thread Aljoscha Krettek
Hi, I'm sorry, I meant TypeInformation.of(initModel.getClass()). On Thu, 21 Apr 2016 at 15:17 Martin Neumann wrote: > Hej, > > I already tried TypeInformation.of(initModel.class) and it complained > that initModel class is unknown. (Since it's of type M) > I added a function to the model.class t

Re: Help with generics

2016-04-21 Thread Martin Neumann
Hej, I already tried TypeInformation.of(initModel.class) and it complained that initModel class is unknown. (Since it's of type M) I added a function to the model.class that returns the TypeInformation its working now though I still don't understand what happend behind the scenes and what I change

Re: Help with generics

2016-04-21 Thread Aljoscha Krettek
Hi, you're right there is not much (very little) in the documentation about TypeInformation. There is only the description in the JavaDoc: TypeInformation Essentially, how it

Re: Help with generics

2016-04-21 Thread Martin Neumann
Hej, I pass an instance of M in the constructor of the class, can I use that instead? Maybe give the class a function that returns the right TypeInformation? I'm trying figure out how TypeInformation works to better understand the Issue is there any documentation about this? At the moment I don't

Re: Help with generics

2016-04-21 Thread Aljoscha Krettek
Hi, I think it doesn't work because the concrete type of M is not available to create a TypeInformation for M. What you can do is manually pass a TypeInformation or a TypeSerializer to the AnomalyFlatMap and use that when creating the state descriptor. Cheers, Aljoscha On Thu, 21 Apr 2016 at 13:4