本文整理了Java中org.locationtech.geogig.model.Node.update()
方法的一些代码示例,展示了Node.update()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.update()
方法的具体详情如下:
包路径:org.locationtech.geogig.model.Node
类名称:Node
方法名:update
暂无
代码示例来源:origin: org.locationtech.geogig/geogig-api
/**
* Creates a new {@code NodeRef} with the updated {@link ObjectId} and {@link Envelope}.
*
* @param newId the updated {@link ObjectId}
* @param newBounds the updated bounds
* @return the newly created {@code NodeRef}
*/
public NodeRef update(final ObjectId newId, final @Nullable Envelope newBounds) {
Node newNode = node.update(newId, newBounds);
return NodeRef.create(parentPath, newNode, metadataId);
}
代码示例来源:origin: locationtech/geogig
/**
* Creates a new {@code NodeRef} with the updated {@link ObjectId} and {@link Envelope}.
*
* @param newId the updated {@link ObjectId}
* @param newBounds the updated bounds
* @return the newly created {@code NodeRef}
*/
public NodeRef update(final ObjectId newId, final @Nullable Envelope newBounds) {
Node newNode = node.update(newId, newBounds);
return NodeRef.create(parentPath, newNode, metadataId);
}
代码示例来源:origin: locationtech/geogig
public Node update(final ObjectId newId) {
return update(newId, bounds().orNull());
}
代码示例来源:origin: org.locationtech.geogig/geogig-api
public Node update(final ObjectId newId) {
return update(newId, bounds().orNull());
}
代码示例来源:origin: locationtech/geogig
public boolean remove(Node node) {
if (!node.getObjectId().isNull()) {
node = node.update(ObjectId.NULL);
}
int delta = put(node);
return -1 == delta;
}
代码示例来源:origin: org.locationtech.geogig/geogig-core
public boolean remove(Node node) {
if (!node.getObjectId().isNull()) {
node = node.update(ObjectId.NULL);
}
int delta = put(node);
return -1 == delta;
}
代码示例来源:origin: locationtech/geogig
Envelope newBounds = new Envelope(n.bounds().get());
newBounds.translate(0.1, 0.1);
Node c = n.update(newId, newBounds);
expectedChanges.put(n, c);
newNodes.add(c);
代码示例来源:origin: org.locationtech.geogig/geogig-core
Envelope newBounds = new Envelope(n.bounds().get());
newBounds.translate(0.1, 0.1);
Node c = n.update(newId, newBounds);
expectedChanges.put(n, c);
newNodes.add(c);
代码示例来源:origin: locationtech/geogig
public RevTree build(ObjectStore store) {
final ObjectId treeId = this.node.getObjectId();
final RevTree original = EMPTY_TREE_ID.equals(treeId) ? EMPTY : store.getTree(treeId);
RevTreeBuilder builder = RevTreeBuilder.builder(store, original);
ImmutableList<Node> currentTrees = original.trees();
currentTrees.forEach(builder::remove);
for (MutableTree childTree : this.childTrees.values()) {
childTree.build(store);
Node newNode = childTree.node;
builder.put(newNode);
}
final Node oldNode = this.node;
RevTree newTree = builder.build();
Envelope newBounds = SpatialOps.boundsOf(newTree);
Node newNode = oldNode.update(newTree.getId(), newBounds);
this.node = newNode;
return newTree;
}
代码示例来源:origin: org.locationtech.geogig/geogig-core
public RevTree build(ObjectStore store) {
final ObjectId treeId = this.node.getObjectId();
final RevTree original = EMPTY_TREE_ID.equals(treeId) ? EMPTY : store.getTree(treeId);
CanonicalTreeBuilder builder = CanonicalTreeBuilder.create(store, original);// .clearSubtrees();
ImmutableList<Node> currentTrees = original.trees();
currentTrees.forEach((n) -> builder.remove(n.getName()));
for (MutableTree childTree : this.childTrees.values()) {
childTree.build(store);
Node newNode = childTree.node;
builder.put(newNode);
}
final Node oldNode = this.node;
RevTree newTree = builder.build();
Envelope newBounds = SpatialOps.boundsOf(newTree);
Node newNode = oldNode.update(newTree.getId(), newBounds);
this.node = newNode;
return newTree;
}
代码示例来源:origin: locationtech/geogig
newBounds.translate(0.1, 0.1);
Node newNode = oldNode.update(newId, newBounds);
builder.update(oldNode, newNode);
removedNodes.add(oldNode);
代码示例来源:origin: locationtech/geogig
Node update = oldNode.update(newId, newBounds);
代码示例来源:origin: org.locationtech.geogig/geogig-core
Node update = oldNode.update(newId, newBounds);
代码示例来源:origin: org.locationtech.geogig/geogig-core
newBounds.translate(0.1, 0.1);
Node newNode = oldNode.update(newId, newBounds);
builder.update(oldNode, newNode);
removedNodes.add(oldNode);
代码示例来源:origin: locationtech/geogig
objectStore.put(updatedFeature);
Node update = n.update(updatedFeature.getId(), newBounds);
changedNodes.add(update);
builder.put(update);
代码示例来源:origin: org.locationtech.geogig/geogig-core
objectStore.put(updatedFeature);
Node update = n.update(updatedFeature.getId(), newBounds);
changedNodes.add(update);
builder.put(update);
代码示例来源:origin: org.locationtech.geogig/geogig-core
Node node2Update = node2.update(RevObjectTestSupport.hashString("node2update"));
Node node3Update = node3.update(RevObjectTestSupport.hashString("node3update"),
new Envelope(-3, -3, -1, -1));
代码示例来源:origin: locationtech/geogig
Node node2Update = node2.update(RevObjectTestSupport.hashString("node2update"));
Node node3Update = node3.update(RevObjectTestSupport.hashString("node3update"),
new Envelope(-3, -3, -1, -1));
代码示例来源:origin: locationtech/geogig
TYPE.FEATURE, null, null);
Node updated = node.update(oId2);
assertEquals(oId1, node.getObjectId());
assertEquals(oId2, updated.getObjectId());
updated = node.update(oId2);
assertEquals(oId1, node.getObjectId());
assertEquals(oId2, updated.getObjectId());
null, null);
updated = node.update(oId2);
assertEquals(oId1, node.getObjectId());
assertEquals(oId2, updated.getObjectId());
内容来源于网络,如有侵权,请联系作者删除!