You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Dan Smith (JIRA)" <ji...@apache.org> on 2015/12/08 00:03:10 UTC

[jira] [Assigned] (GEODE-394) Casting FunctionContext to RegionFunctionContext is an ugly API

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

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

    Assignee: 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
>            Assignee: Dan Smith
>
> 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
(v6.3.4#6332)