@Override public int getRegionSize() { return entryCount(null); }
public int entryCount(Set<Integer> buckets) { return entryCount(buckets, false); }
@Override public int entryCount(final TXStateInterface tx, final Set<Integer> buckets) { return entryCount(tx, buckets, false); }
public int entryCount(boolean localOnly) { if (localOnly) { if (this.isDataStore()) { return entryCount(this.dataStore.getAllLocalBucketIds()); } else { return 0; } } else { return entryCount(null); } }
@Override public int getRegionSize() { return entryCount(getTXState(), null); }
@Override public int size() { checkTX(); return PartitionedRegion.this.entryCount(this.bucketSet); }
@Override public int size() { checkTX(); return PartitionedRegion.this.entryCount(this.myTX, this.bucketSet); }
public int size() { return this.proxy.entryCount(this.txState, getBucketSet()); }
public int size() { return this.proxy.entryCount(getBucketSet()); }
public Object call() throws Exception { try { final PartitionedRegion pr = (PartitionedRegion)getRootRegion(name); assertNotNull(pr); return pr.entryCount(false); } finally { } } };
public int entryCount(boolean localOnly) { if (localOnly) { if (this.isDataStore()) { return entryCount(getTXState(), new THashSet(this.dataStore.getAllLocalBucketIds())); } else { return 0; } } else { return entryCount(null); } }
public Object call() throws Exception { try { final PartitionedRegion pr = (PartitionedRegion)getRootRegion(name); assertNotNull(pr); return pr.entryCount(pr.getTXState(), pr.getDataStore() .getAllLocalPrimaryBucketIds()); } finally { } } };
public RegionSubRegionSnapshot(Region reg) { this(); this.name = reg.getName(); if (reg instanceof PartitionedRegion) { PartitionedRegion p_reg = (PartitionedRegion)reg; this.entryCount = p_reg.entryCount(true); } else { this.entryCount = reg.entrySet().size(); } final LogWriterI18n logger = reg.getCache().getLoggerI18n(); if((logger != null) && logger.fineEnabled()) { logger.fine( "RegionSubRegionSnapshot Region entry count =" + this.entryCount + " for region =" + this.name); } }
public RegionSubRegionSnapshot(Region reg) { this(); this.name = reg.getName(); if (reg instanceof PartitionedRegion) { PartitionedRegion p_reg = (PartitionedRegion)reg; this.entryCount = p_reg.entryCount(true); } else { this.entryCount = reg.entrySet().size(); } final LogWriterI18n logger = reg.getCache().getLoggerI18n(); if((logger != null) && logger.fineEnabled()) { logger.fine( "RegionSubRegionSnapshot Region entry count =" + this.entryCount + " for region =" + this.name); } }
return pr.entryCount(pr.getTXState(), allBuckets); return pr.entryCount(pr.getTXState(), bucketIds); return pr.entryCount(pr.getTXState(), pr.getDataStore() .getAllLocalPrimaryBucketIds());
return pr.entryCount(pr.getTXState(), allBuckets); return pr.entryCount(pr.getTXState(), bucketIds); return pr.entryCount(pr.getTXState(), pr.getDataStore() .getAllLocalPrimaryBucketIds());
return pr.entryCount(pr.getTXState(), allBuckets); return pr.entryCount(pr.getTXState(), bucketIds); return pr.entryCount(pr.getTXState(), pr.getDataStore() .getAllLocalPrimaryBucketIds());
pr.setQueryHDFS(false); rows = pr.entryCount(null, pr.getDataStore().getAllLocalBucketIds()); } finally { pr.setQueryHDFS(currentSettingOfQueryHFDS);
pr.setQueryHDFS(false); rows = pr.entryCount(null, pr.getDataStore().getAllLocalBucketIds()); } finally { pr.setQueryHDFS(currentSettingOfQueryHFDS);
pr.setQueryHDFS(false); rows = pr.entryCount(null, pr.getDataStore().getAllLocalBucketIds()); } finally { pr.setQueryHDFS(currentSettingOfQueryHFDS);