@Test
  public void testQRegionInterface() throws Exception {
    String[] queries = {"select distinct * from " + SEPARATOR + "pos.keys where toString = '1'",
        "select distinct * from " + SEPARATOR + "pos.values where status = 'active'",
        "select distinct * from " + SEPARATOR + "pos.entries where key = '1'",
        "select distinct * from " + SEPARATOR + "pos.entries where value.status = 'active'"};

    for (final String query : queries) {
      Query q = qs.newQuery(query);
      Object r = q.execute();
    }
  }
RegionJUnitTest.java

Created on January 31, 2005, 3:54 PM
geode-core/src/integrationTest/java/org/apache/geode/cache/query/RegionJUnitTest.java