![JAR search and dependency download from the Maven repository](/logo.png)
gedi.solutions.geode.io.function.GetAllRegionValuesFunction Maven / Gradle / Ivy
package gedi.solutions.geode.io.function;
import java.util.ArrayList;
import java.util.Collection;
import org.apache.geode.cache.Region;
import org.apache.geode.cache.execute.Function;
import org.apache.geode.cache.execute.FunctionContext;
import org.apache.geode.cache.execute.FunctionException;
import org.apache.geode.cache.execute.RegionFunctionContext;
import org.apache.geode.cache.partition.PartitionRegionHelper;
@SuppressWarnings("serial")
public class GetAllRegionValuesFunction implements Function
{
@SuppressWarnings("unchecked")
@Override
public void execute(FunctionContext context)
{
if(!(context instanceof RegionFunctionContext))
throw new FunctionException("Execution onRegion required");
RegionFunctionContext rfc = (RegionFunctionContext)context;
Object args = rfc.getArguments();
if(!(args instanceof Collection))
throw new FunctionException("Arguments with collection of keys required");
Collection
© 2015 - 2025 Weber Informatics LLC | Privacy Policy