[ 
https://issues.apache.org/jira/browse/FLINK-5094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15683869#comment-15683869
 ] 

Aljoscha Krettek commented on FLINK-5094:
-----------------------------------------

I think this could work by just passing in a reference to the {{RichFunction}}. 
If I'm correct then Java Serialization should keep object trees as they are so 
the handle to the function that we have in the {{StateDescriptor}} and the 
handle in the {{WindowOperator}} should be the same instance after 
deserialising. We would then just need to make sure to call open on the 
{{RichFunction}} in {{WindowOperator}}.

> Support RichReduceFunction and RichFoldFunction as incremental window 
> aggregation functions
> -------------------------------------------------------------------------------------------
>
>                 Key: FLINK-5094
>                 URL: https://issues.apache.org/jira/browse/FLINK-5094
>             Project: Flink
>          Issue Type: Improvement
>          Components: Streaming, Windowing Operators
>    Affects Versions: 1.2.0, 1.1.3
>            Reporter: Fabian Hueske
>
> Support {{RichReduceFunction}} and {{RichFoldFunction}} as incremental window 
> aggregation functions in order to initialize the functions via {{open()}}.
> The main problem is that we do not want to provide the full power of 
> {{RichFunction}} for incremental aggregation functions, such as defining own 
> operator state. This could be achieve by providing some kind of 
> {{RestrictedRuntimeContext}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to