private void computeEntryCount() { if (parRegion.isDataStore()) { //if not a DataStore do nothing and keep the entryCount as 0; int numLocalEntries = 0; Map<Integer, SizeEntry> localPrimaryBucketRegions = parRegion.getDataStore() .getSizeEstimateForLocalPrimaryBuckets(); if (localPrimaryBucketRegions != null && localPrimaryBucketRegions.size() > 0) { for (Map.Entry<Integer, SizeEntry> me : localPrimaryBucketRegions.entrySet()) { numLocalEntries += me.getValue().getSize(); } } this.estimatedEntryCount = numLocalEntries; } }
private void computeEntryCount() { if (parRegion.isDataStore()) { //if not a DataStore do nothing and keep the entryCount as 0; int numLocalEntries = 0; Map<Integer, SizeEntry> localPrimaryBucketRegions = parRegion.getDataStore() .getSizeEstimateForLocalPrimaryBuckets(); if (localPrimaryBucketRegions != null && localPrimaryBucketRegions.size() > 0) { for (Map.Entry<Integer, SizeEntry> me : localPrimaryBucketRegions.entrySet()) { numLocalEntries += me.getValue().getSize(); } } this.estimatedEntryCount = numLocalEntries; } }
Map<Integer, SizeEntry> localSizes; if (estimate) { localSizes = dataStore.getSizeEstimateForLocalPrimaryBuckets(); } else { localSizes = dataStore.getSizeForLocalPrimaryBuckets();
Map<Integer, SizeEntry> localSizes; if (estimate) { localSizes = dataStore.getSizeEstimateForLocalPrimaryBuckets(); } else { localSizes = dataStore.getSizeForLocalPrimaryBuckets();
sizes = ds.getSizeEstimateForLocalPrimaryBuckets(); } else { sizes = ds.getSizeForLocalBuckets();
sizes = ds.getSizeEstimateForLocalPrimaryBuckets(); } else { sizes = ds.getSizeForLocalBuckets();