public void setProperty(ObjectId commitId, String propertyName, String propertyValue) { synchronized (delegate) { delegate.setProperty(commitId, propertyName, propertyValue); } }
public void setProperty(ObjectId commitId, String propertyName, String propertyValue) { synchronized (delegate) { delegate.setProperty(commitId, propertyName, propertyValue); } }
@Test public void testProperties() throws IOException { ObjectId rootId = RevObjectTestSupport.hashString("root"); ImmutableList<ObjectId> parents = ImmutableList.of(); database.put(rootId, parents); database.setProperty(rootId, GraphDatabase.SPARSE_FLAG, "true"); assertTrue(database.getNode(rootId).isSparse()); }
@Test public void testProperties() throws IOException { ObjectId rootId = RevObjectTestSupport.hashString("root"); ImmutableList<ObjectId> parents = ImmutableList.of(); database.put(rootId, parents); database.setProperty(rootId, GraphDatabase.SPARSE_FLAG, "true"); assertTrue(database.getNode(rootId).isSparse()); }
@Test public void testSparseNode() { ObjectId nodeId = RevObjectTestSupport.hashString("node"); database.put(nodeId, ImmutableList.of()); GraphNode node = database.getNode(nodeId); assertFalse(node.isSparse()); database.setProperty(nodeId, GraphDatabase.SPARSE_FLAG, "true"); node = database.getNode(nodeId); assertTrue(node.isSparse()); database.setProperty(nodeId, GraphDatabase.SPARSE_FLAG, "false"); node = database.getNode(nodeId); assertFalse(node.isSparse()); }
@Test public void testSparseNode() { ObjectId nodeId = RevObjectTestSupport.hashString("node"); database.put(nodeId, ImmutableList.of()); GraphNode node = database.getNode(nodeId); assertFalse(node.isSparse()); database.setProperty(nodeId, GraphDatabase.SPARSE_FLAG, "true"); node = database.getNode(nodeId); assertTrue(node.isSparse()); database.setProperty(nodeId, GraphDatabase.SPARSE_FLAG, "false"); node = database.getNode(nodeId); assertFalse(node.isSparse()); }
graphDatabase.setProperty(mapped.getId(), GraphDatabase.SPARSE_FLAG, "true"); objectDatabase.put(mapped); graphDatabase.setProperty(mapped.getId(), GraphDatabase.SPARSE_FLAG, "true"); } else { graphDatabase.setProperty(graphDatabase.getMapping(commit.getId()), GraphDatabase.SPARSE_FLAG, "true");
graphDatabase.setProperty(mapped.getId(), GraphDatabase.SPARSE_FLAG, "true"); objectDatabase.put(mapped); graphDatabase.setProperty(mapped.getId(), GraphDatabase.SPARSE_FLAG, "true"); } else { graphDatabase.setProperty(graphDatabase.getMapping(commit.getId()), GraphDatabase.SPARSE_FLAG, "true");
insertAndAdd(points2); RevCommit commit2 = geogig.command(CommitOp.class).setMessage("commit2").call(); geogig.getRepository().graphDatabase().setProperty(commit2.getId(), GraphDatabase.SPARSE_FLAG, "true"); insertAndAdd(points3); insertAndAdd(poly1); RevCommit commit5 = geogig.command(CommitOp.class).setMessage("commit5").call(); geogig.getRepository().graphDatabase().setProperty(commit5.getId(), GraphDatabase.SPARSE_FLAG, "true"); geogig.command(CheckoutOp.class).setSource("branch2").call();
insertAndAdd(points2); RevCommit commit2 = geogig.command(CommitOp.class).setMessage("commit2").call(); geogig.getRepository().graphDatabase().setProperty(commit2.getId(), GraphDatabase.SPARSE_FLAG, "true"); insertAndAdd(points3); insertAndAdd(poly1); RevCommit commit5 = geogig.command(CommitOp.class).setMessage("commit5").call(); geogig.getRepository().graphDatabase().setProperty(commit5.getId(), GraphDatabase.SPARSE_FLAG, "true"); geogig.command(CheckoutOp.class).setSource("branch2").call();
insertAndAdd(poly1); RevCommit commit5 = geogig.command(CommitOp.class).setMessage("commit5").call(); geogig.getRepository().graphDatabase().setProperty(commit5.getId(), GraphDatabase.SPARSE_FLAG, "true"); geogig.command(CheckoutOp.class).setSource("branch2").call();
insertAndAdd(poly1); RevCommit commit5 = geogig.command(CommitOp.class).setMessage("commit5").call(); geogig.getRepository().graphDatabase().setProperty(commit5.getId(), GraphDatabase.SPARSE_FLAG, "true"); geogig.command(CheckoutOp.class).setSource("branch2").call();