public DiskRegionInfoWithList(DiskRegionView dr, boolean couldHaveKrf, boolean krfExists) { super(dr); // we need to keep track of the version tags for entries so that we write the correct entry to the krf // both in sync and async disk write cases if (!krfExists && couldHaveKrf) { pendingKrfTags = ObjectObjectHashMap.withExpectedSize(200); } else { pendingKrfTags = null; } }
/** * Returns a map of baseline oplog files to copy that match this oplog's files for a currently running backup. * @param baselineOplogFiles a List of files to match this oplog's filenames against. * @param allFiles - a set of all files for the oplog. This set will be modified to remove all of the files * that are present in the baseline. * @return a map of baslineline oplog files to copy. May be empty if total current set for this oplog * does not match the baseline. */ Map<File,File> mapBaseline(List<File> baselineOplogFiles, Set<File> allFiles) { // Map of baseline oplog file name to oplog file Map<String,File> baselineOplogMap = TransformUtils.transformAndMap(baselineOplogFiles,TransformUtils.fileNameTransformer); // Returned Map of baseline file to current oplog file Map<File,File> baselineToOplogMap = ObjectObjectHashMap.withExpectedSize(16); for(Iterator<File> itr = allFiles.iterator(); itr.hasNext(); ) { File file = itr.next(); // If the file is in the baseline, add it to the baseline map and remove // it from the set of files to backup. if(baselineOplogMap.containsKey(file.getName())) { baselineToOplogMap.put(baselineOplogMap.get(file.getName()), file); itr.remove(); } } return baselineToOplogMap; }
ObjectObjectHashMap.withExpectedSize(this.pathToRegion.size()); this.pathToRegion.values().forEach(region -> { if (region.isInternalRegion() || (region instanceof HARegion)) return;
ObjectObjectHashMap.withExpectedSize(this.gfKeys.length); for (Object gfKey : this.gfKeys) {
ObjectObjectHashMap.withExpectedSize(this.regionMap.size()); ArrayList<DiskRegionInfo> targetRegions = new ArrayList<DiskRegionInfo>( this.regionMap.size());
this.getAllKeysAndRoutingObjects = ObjectObjectHashMap.withExpectedSize(8); if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager