Skip to content

Conversation

twalthr
Copy link
Contributor

@twalthr twalthr commented Jan 16, 2015

The TypeExtractor now also fully supports generic POJOs and tries to get missing types by using type inference.

Functions can look like:

MapFunction<PojoWithGenerics<Long, T>, PojoWithGenerics<T,T>>
MapFunction<Tuple2<E, D>, PojoTuple<E, D, D>>
MapFunction<PojoTuple<E, D, D>, Tuple2<E, D>>

POJOs can contain fields such as:

public PojoWithGenerics<Z, Z> field;
public Z[] field;
public Tuple1<Z>[] field;

If you have ideas for other test cases, I'm happy to implement them.

@StephanEwen
Copy link
Contributor

Great! I am looking forward very much to having that in the APIs

@rmetzger
Copy link
Contributor

I didn't find any issues in the code. Good to merge.

@StephanEwen
Copy link
Contributor

+1 to merge from me as well. Go ahead, Timo...

@asfgit asfgit closed this in 6067833 Jan 26, 2015
zhijiangW pushed a commit to zhijiangW/flink that referenced this pull request Apr 13, 2020
jnh5y pushed a commit to jnh5y/flink that referenced this pull request Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants