private RevFeatureType getType(ObjectId featureTypeId, Map<ObjectId, RevFeatureType> typeCache) { RevFeatureType type = typeCache.get(featureTypeId); if (null == type) { type = objectDatabase().getFeatureType(featureTypeId); typeCache.put(featureTypeId, type); } return type; }
private RevFeatureType getType(ObjectId featureTypeId, Map<ObjectId, RevFeatureType> typeCache) { RevFeatureType type = typeCache.get(featureTypeId); if (null == type) { type = objectDatabase().getFeatureType(featureTypeId); typeCache.put(featureTypeId, type); } return type; }
DepthSearch depthSearch = new DepthSearch(objectDatabase()); Optional<NodeRef> noderef = depthSearch.find(workingTree().getTree(), path); RevFeatureType featureType = command(RevObjectParse.class) } else { RevFeature revFeature = (RevFeature) obj.get(); DepthSearch depthSearch = new DepthSearch(objectDatabase()); Optional<NodeRef> noderef = depthSearch.find(workingTree().getTree(), feature.getPath()); DepthSearch depthSearch = new DepthSearch(objectDatabase()); Optional<NodeRef> noderef = depthSearch.find(workingTree().getTree(), diff.getPath()); ObjectId metadataId = noderef.isPresent() ? noderef.get().getMetadataId()
DepthSearch depthSearch = new DepthSearch(objectDatabase()); Optional<NodeRef> noderef = depthSearch.find(workingTree().getTree(), path); RevFeatureType featureType = command(RevObjectParse.class) } else { RevFeature revFeature = (RevFeature) obj.get(); DepthSearch depthSearch = new DepthSearch(objectDatabase()); Optional<NodeRef> noderef = depthSearch.find(workingTree().getTree(), feature.getPath()); DepthSearch depthSearch = new DepthSearch(objectDatabase()); Optional<NodeRef> noderef = depthSearch.find(workingTree().getTree(), diff.getPath()); ObjectId metadataId = noderef.isPresent() ? noderef.get().getMetadataId()