Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-394

Casting FunctionContext to RegionFunctionContext is an ugly API

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • functions
    • None

    Description

      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

      RegionFunctionContext ctx = (RegionFunctionContext) context;
      Region data = PartitionRegionHelper.getLocalDataForContext(ctx);
      

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              upthewaterspout Dan Smith
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: