public ChangeSetBuilder addParentPath(String path){ path = getPathWithMaxDepth(path, maxPathDepth); parentPathOverflow = addAndCheckOverflow(parentPaths, path, maxItems, parentPathOverflow); return this; }
public ChangeSetBuilder addParentPath(String path){ path = getPathWithMaxDepth(path, maxPathDepth); parentPathOverflow = addAndCheckOverflow(parentPaths, path, maxItems, parentPathOverflow); return this; }
private void addPathFromChangeSet(ChangeSet cs) { int maxDepthInChangeSet = cs.getMaxPrefilterPathDepth(); //If maxDepth of ChangeSet being added is less than current //then truncate path in current set to that depth and change //maxPathDepth to one from ChangeSet if (maxDepthInChangeSet < maxPathDepth){ Set<String> existingPathSet = Sets.newHashSet(parentPaths); parentPaths.clear(); for (String existingPath : existingPathSet){ parentPaths.add(getPathWithMaxDepth(existingPath, maxDepthInChangeSet)); } maxPathDepth = maxDepthInChangeSet; } for (String pathFromChangeSet : cs.getParentPaths()){ addParentPath(getPathWithMaxDepth(pathFromChangeSet, maxPathDepth)); } }
private void addPathFromChangeSet(ChangeSet cs) { int maxDepthInChangeSet = cs.getMaxPrefilterPathDepth(); //If maxDepth of ChangeSet being added is less than current //then truncate path in current set to that depth and change //maxPathDepth to one from ChangeSet if (maxDepthInChangeSet < maxPathDepth){ Set<String> existingPathSet = Sets.newHashSet(parentPaths); parentPaths.clear(); for (String existingPath : existingPathSet){ parentPaths.add(getPathWithMaxDepth(existingPath, maxDepthInChangeSet)); } maxPathDepth = maxDepthInChangeSet; } for (String pathFromChangeSet : cs.getParentPaths()){ addParentPath(getPathWithMaxDepth(pathFromChangeSet, maxPathDepth)); } }