gedi.solutions.geode.functions.FuncAssistant Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gedi-geode-extensions-core Show documentation
Show all versions of gedi-geode-extensions-core Show documentation
GemFire Enterprise Data Integration - common development extensions powered by Apache Geode
The newest version!
package gedi.solutions.geode.functions;
import org.apache.geode.cache.Region;
import org.apache.geode.cache.execute.RegionFunctionContext;
import org.apache.geode.cache.partition.PartitionRegionHelper;
public class FuncAssistant
{
public static Region getLocalPrimaryData(Region region,RegionFunctionContext rfc)
{
if(rfc != null && JvmRegionFunctionContext.class.isAssignableFrom(rfc.getClass()))
{
return region;
}
else
{
return PartitionRegionHelper.getLocalPrimaryData(region);
}
}
}