flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Hogan <c...@greghogan.com>
Subject Java type erasure and object reuse
Date Thu, 17 Sep 2015 20:31:23 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message