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 .