(弗林克1.3)弗林克類型提取問題,自定義泛型類
我與類型的提取問題:
The return type of function '...' could not be determined
automatically, due to type erasure. You can give type information hints
by using the returns(...) method on the result of the transformation
call, or by letting your function implement the 'ResultTypeQueryable'
interface.
當使用DataStream<MyGenericClass<T>>
其中:
public class MyGenericClass<T> extends Tuple2<String, T> {
...
}
我怎樣才能解決沒有.returns(..)
解決方案的問題?
你可以舉一個例子來說明如何實現一個類型信息工廠或者如何爲MyGenericClass
實現ResultTypeQueryable
?
預先感謝您