try { for (String key : vertexProgram.getElementComputeKeys()) { if (!mgmt.containsPropertyKey(key)) log.warn("Property key [{}] is not part of the schema and will be created. It is advised to initialize all keys.", key); mgmt.getOrCreatePropertyKey(key);
assertEquals("weight", weight.toString()); assertTrue(mgmt.containsRelationType("weight")); assertTrue(mgmt.containsPropertyKey("weight")); assertFalse(mgmt.containsEdgeLabel("weight")); assertTrue(mgmt.containsEdgeLabel("connect")); assertFalse(mgmt.containsPropertyKey("connect")); assertFalse(mgmt.containsRelationType("bla")); assertNull(mgmt.getPropertyKey("bla")); assertEquals("weight", weight.toString()); assertTrue(mgmt.containsRelationType("weight")); assertTrue(mgmt.containsPropertyKey("weight")); assertFalse(mgmt.containsEdgeLabel("weight")); assertTrue(mgmt.containsEdgeLabel("connect")); assertFalse(mgmt.containsPropertyKey("connect")); assertFalse(mgmt.containsRelationType("bla")); assertNull(mgmt.getPropertyKey("bla"));
@Override public boolean containsPropertyKey(String propertyKey) { return management.containsPropertyKey(propertyKey); }
@Override public boolean containsPropertyKey(String propertyName) { return management.containsPropertyKey(propertyName); }
try { for (String key : vertexProgram.getElementComputeKeys()) { if (!mgmt.containsPropertyKey(key)) log.warn("Property key [{}] is not part of the schema and will be created. It is advised to initialize all keys.", key); mgmt.getOrCreatePropertyKey(key);
assertEquals("weight",weight.toString()); assertTrue(mgmt.containsRelationType("weight")); assertTrue(mgmt.containsPropertyKey("weight")); assertFalse(mgmt.containsEdgeLabel("weight")); assertTrue(mgmt.containsEdgeLabel("connect")); assertFalse(mgmt.containsPropertyKey("connect")); assertFalse(mgmt.containsRelationType("bla")); assertNull(mgmt.getPropertyKey("bla")); assertEquals("weight",weight.toString()); assertTrue(mgmt.containsRelationType("weight")); assertTrue(mgmt.containsPropertyKey("weight")); assertFalse(mgmt.containsEdgeLabel("weight")); assertTrue(mgmt.containsEdgeLabel("connect")); assertFalse(mgmt.containsPropertyKey("connect")); assertFalse(mgmt.containsRelationType("bla")); assertNull(mgmt.getPropertyKey("bla"));