gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/operations/ObjectSizing.java
private void sizeReplicatedOrLocalRegion(Region<?,?> region, int numEntries) {
	    Set<?> entries = region.entrySet();
	    int regionSize = entries.size();
	    if (numEntries == 0) {
	      numEntries = entries.size();
	    } else if (numEntries > regionSize) {
	      numEntries = regionSize;
	    }
	    
	    int count = 0;
	    for (Iterator<?> i = entries.iterator(); i.hasNext();) {
	      if (count == numEntries) {
	        break;
	      }
	      LocalRegion.NonTXEntry entry = (LocalRegion.NonTXEntry) i.next();
	      RegionEntry re = entry.getRegionEntry();
	      dumpSizes(entry, re);
	    }
	    
	    dumpTotalAndAverageSizes(numEntries);
	    clearTotals();
	  }
private void sizeReplicatedOrLocalRegion(Region<?,?> region, int numEntries) {
	    Set<?> entries = region.entrySet();
	    int regionSize = entries.size();
	    if (numEntries == 0) {
	      numEntries = entries.size();
	    } else if (numEntries > regionSize) {
	      numEntries = regionSize;
	    }
	    
	    int count = 0;
	    for (Iterator<?> i = entries.iterator(); i.hasNext();) {
	      if (count == numEntries) {
	        break;
	      }
	      LocalRegion.NonTXEntry entry = (LocalRegion.NonTXEntry) i.next();
	      RegionEntry re = entry.getRegionEntry();
	      dumpSizes(entry, re);
	    }
	    
	    dumpTotalAndAverageSizes(numEntries);
	    clearTotals();
	  }
Sizes numEntries of a replicated or local region, or all the entries if
numEntries is 0.

@param numEntries Number of entries to size. If the value is 0, all the
entries are sized.