[ 
https://issues.apache.org/jira/browse/GEODE-394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dan Smith reassigned GEODE-394:
-------------------------------

    Assignee:     (was: Dan Smith)

> Casting FunctionContext to RegionFunctionContext is an ugly API
> ---------------------------------------------------------------
>
>                 Key: GEODE-394
>                 URL: https://issues.apache.org/jira/browse/GEODE-394
>             Project: Geode
>          Issue Type: Improvement
>          Components: functions
>            Reporter: Dan Smith
>            Priority: Major
>
> If a function is invoked on a region, it's common to try to get at the local 
> data set for the function.
> The API do this is is pretty ugly. It should be cleaned up
> {code}
> RegionFunctionContext ctx = (RegionFunctionContext) context;
> Region data = PartitionRegionHelper.getLocalDataForContext(ctx);
> {code}
> Instead of this, functions that are invoked on regions should probably 
> implement a different interface that gets passed the local data they are 
> interested in.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to