public Iterator<RegionEntry> getBestIterator(boolean includeValues) {
    if (this instanceof DistributedRegion) {
      return getBestIterator(includeValues);
    }

    return entries.regionEntries().iterator();
  }
Get the best iterator for the region entries.
geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java