Dan Smith created GEODE-394:
-------------------------------

             Summary: 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


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)

Reply via email to