private Set getBucketsForFilter(Set filter) {
    Set bucketids = new HashSet();
    for (Object key : filter) {
      int intKey = (Integer) key;
      bucketids.add(intKey % numOfBuckets);
    }
    return bucketids;
  }
Runs a {@link LocalDataSet} query on a single server.

@return results in a List
geode-core/src/distributedTest/java/org/apache/geode/cache/query/dunit/QueryUsingFunctionContextDUnitTest.java