What is best practice for handling Java type erasure in user defined functions? Is there a means by which the TypeInformation can be accessed from a RichFunction? My temporary solution was to add a "T copy()" method to the CopyableValue interface.
A common use case is a GroupReduceFunction that needs to collect objects. With object reuse we need to make a copy and with type erasure we cannot call new. Greg Hogan