@Override public void remove() { this.baseVertexProperty.remove(); }
assertEquals(1,p.<Integer>value("sig").intValue()); assertEquals("John",p.value()); p.remove(); sign(v.property("name","Bob"),transactionId); for (String pkey : new String[]{"value","valuef"}) {
assertEquals(e, getE(graph, e.id().toString())); VertexProperty p = getOnlyElement(v3.properties("uid")); p.remove(); v3.property("uid", 353);
assertEquals(1,p.<Integer>value("sig").intValue()); assertEquals("John",p.value()); p.remove(); sign(v.property("name","Bob"),txid); for (String pkey : new String[]{"value","valuef"}) {
assertEquals(e, getE(graph, e.id().toString())); VertexProperty p = getOnlyElement(v3.properties("uid")); p.remove(); v3.property("uid", 353);
assertEquals(1, v1.query().has("~timestamp", Cmp.GREATER_THAN, Instant.ofEpochSecond(10)).propertyCount()); assertEquals(1, v1.query().has("~timestamp", Instant.ofEpochSecond(100, 1000)).propertyCount()); v1.property(name).remove(); v1.property(VertexProperty.Cardinality.single, address, "xyz"); Edge edge = v2.addEdge("parent",v1); v1.property(address).remove(); tx3.commit();
getV(propDeleter, id).property(propName).remove(); else getV(propDeleter, id).property(VertexProperty.Cardinality.single, propName, updatedValue);
assertEquals(1, v1.query().has("~timestamp", Cmp.GREATER_THAN, Instant.ofEpochSecond(10)).propertyCount()); assertEquals(1, v1.query().has("~timestamp", Instant.ofEpochSecond(100, 1000)).propertyCount()); v1.property(name).remove(); v1.property(VertexProperty.Cardinality.single, address, "xyz"); Edge edge = v2.addEdge("parent",v1); v1.property(address).remove(); tx3.commit();
getV(propDeleter, id).property(propName).remove(); else getV(propDeleter, id).property(VertexProperty.Cardinality.single, propName, updatedValue);
vs[3] = getV(tx, vs[3]); vs[3].property(VertexProperty.Cardinality.single, "name", "Bad Boy Badsy"); vs[3].property("age").remove(); newTx(); vs[0] = getV(tx, vs[0]);
u.property(VertexProperty.Cardinality.single, "name", "Big Brother Bob"); } else if (n.endsWith("Mabel")) { u.property("name").remove();
vs[3] = getV(tx, vs[3]); vs[3].property(VertexProperty.Cardinality.single, "name", "Bad Boy Badsy"); vs[3].property("age").remove(); newTx(); vs[0] = getV(tx, vs[0]);
u.property(VertexProperty.Cardinality.single, "name", "Big Brother Bob"); } else if (n.endsWith("Mabel")) { u.property("name").remove();
v1.properties(property).forEachRemaining(p -> { if (p.value().equals(value1)) { p.remove();
@Test public void testRemoveVertexPropertyNonNullWithIndex() { HugeGraph graph = graph(); Vertex vertex = graph.addVertex(T.label, "person", "name", "Baby", "city", "Hongkong", "age", 3); Assert.assertThrows(IllegalArgumentException.class, () -> { vertex.property("name").remove(); }); }
v1.properties(property).forEachRemaining(p -> { if (p.value().equals(value1)) { p.remove();
@Test public void testEliminateAndEliminateDifferentVertexProperty() { HugeGraph graph = graph(); Vertex vertex = graph.addVertex(T.label, "author", "id", 1, "age", 18, "name", "Tom", "lived", "Beijing"); vertex.property("age").remove(); vertex.property("lived").remove(); graph.tx().commit(); vertex = vertex("author", "id", 1); Assert.assertFalse(vertex.property("age").isPresent()); Assert.assertFalse(vertex.property("lived").isPresent()); }
@Test public void testUpdateVertexPropertyOfNewVertex() { HugeGraph graph = graph(); Vertex vertex = graph.addVertex(T.label, "author", "id", 1, "name", "Tom", "lived", "Beijing"); vertex.property("lived").remove(); vertex.property("lived", "Shanghai"); graph.tx().commit(); vertex = vertex("author", "id", 1); Assert.assertEquals("Shanghai", vertex.property("lived").value()); }
@Test public void testAppendAndEliminateSameVertexProperty() { HugeGraph graph = graph(); Vertex vertex = graph.addVertex(T.label, "author", "id", 1, "name", "Tom", "lived", "Beijing"); vertex.property("lived", "Shanghai"); vertex.property("lived").remove(); graph.tx().commit(); vertex = vertex("author", "id", 1); Assert.assertFalse(vertex.property("lived").isPresent()); }