You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Stephan Ewen (JIRA)" <ji...@apache.org> on 2015/09/22 14:32:04 UTC
[jira] [Commented] (FLINK-2723) CopyableValue method to copy into
new instance
[ https://issues.apache.org/jira/browse/FLINK-2723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14902499#comment-14902499 ]
Stephan Ewen commented on FLINK-2723:
-------------------------------------
+1, good idea
It would be breaking in the APIs, but I think the {{CopyableValue}} is not frequently used.
> CopyableValue method to copy into new instance
> ----------------------------------------------
>
> Key: FLINK-2723
> URL: https://issues.apache.org/jira/browse/FLINK-2723
> Project: Flink
> Issue Type: New Feature
> Components: Core
> Affects Versions: master
> Reporter: Greg Hogan
> Assignee: Greg Hogan
> Priority: Minor
>
> Provide a method for generic user-defined functions to clone a {{CopyableValue}}. A common use case is a {{GroupReduceFunction}} that needs to store multiple objects. With object reuse we need to make a deep copy and with type erasure we cannot call new.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)