public SelectResults getEntries() {
    ResultsCollectionWrapper res;
    if (region instanceof LocalDataSet) {
      LocalDataSet localData = (LocalDataSet) region;
      res = new ResultsCollectionWrapper(TypeUtils.getRegionEntryType(region),
          localData.localEntrySet());
    } else {
      res = new ResultsCollectionWrapper(TypeUtils.getRegionEntryType(region),
          region.entrySet(false));
    }
    res.setModifiable(false);
    return res;
  }
Returns the entries as an unmodifiable SelectResults. This is the preferred method that is
invoked when accessing the attribute "entries".
geode-core/src/main/java/org/apache/geode/cache/query/internal/QRegion.java