gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/operations/ObjectSizing.java
private void sizePartitionedRegion(Region<?,?> region, int numEntries) {
	    Region<?,?> primaryDataSet = PartitionRegionHelper.getLocalData(region);
	    int regionSize = primaryDataSet.size();
	    if (numEntries == 0) {
	      numEntries = primaryDataSet.size();
	    } else if (numEntries > regionSize) {
	      numEntries = regionSize;
	    }
	    
	    int count = 0;
	    for (Iterator<?> i = primaryDataSet.entrySet().iterator(); i.hasNext();) {
	      if (count == numEntries) {
	        break;
	      }
	      EntrySnapshot entry = (EntrySnapshot) i.next();
	      RegionEntry re = entry.getRegionEntry();
	      dumpSizes(entry, re);
	    }

	    dumpTotalAndAverageSizes(numEntries);
	    clearTotals();
	  }
private void sizePartitionedRegion(Region<?,?> region, int numEntries) {
	    Region<?,?> primaryDataSet = PartitionRegionHelper.getLocalData(region);
	    int regionSize = primaryDataSet.size();
	    if (numEntries == 0) {
	      numEntries = primaryDataSet.size();
	    } else if (numEntries > regionSize) {
	      numEntries = regionSize;
	    }
	    
	    int count = 0;
	    for (Iterator<?> i = primaryDataSet.entrySet().iterator(); i.hasNext();) {
	      if (count == numEntries) {
	        break;
	      }
	      EntrySnapshot entry = (EntrySnapshot) i.next();
	      RegionEntry re = entry.getRegionEntry();
	      dumpSizes(entry, re);
	    }

	    dumpTotalAndAverageSizes(numEntries);
	    clearTotals();
	  }
private void sizePartitionedRegion ( Region < ? , ? > region , int numEntries ) { Region < ? , ? > primaryDataSet = PartitionRegionHelper . getLocalData ( region ) ; int regionSize = primaryDataSet . size ( ) ; if ( numEntries == 0 ) { numEntries = primaryDataSet . size ( ) ; } else if ( numEntries > regionSize ) { numEntries = regionSize ; } int count = 0 ; for ( Iterator < ? > i = primaryDataSet . entrySet ( ) . iterator ( ) ; i . hasNext ( ) ; ) { if ( count == numEntries ) { break ; } EntrySnapshot entry = ( EntrySnapshot ) i . next ( ) ; RegionEntry re = entry . getRegionEntry ( ) ; dumpSizes ( entry , re ) ; } dumpTotalAndAverageSizes ( numEntries ) ; clearTotals ( ) ; }
Sizes numEntries of a partitioned 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.
Sizes numEntries of a partitioned region or all the entries if numEntries is 0 .