@Override public void remove() { element.removeProperty(this); } }
@Override public String toString() { return "UniElement{" + "properties=" + getPropertiesMap() + ", id='" + id + '\'' + ", label='" + label + '\'' + ", graph=" + graph + '}'; } }
@Override public void remove() { vertex.removeProperty(this); } }
@Override public Vertex createElement(Map<String, Object> fields) { Map<String, Object> properties = getProperties(fields); if (properties == null) return null; return new UniVertex(properties, this, graph); }
@Override public Iterator<Edge> edges(Object... ids) { return this.query(Edge.class, ids); }
@Override public <V> VertexProperty<V> property(VertexProperty.Cardinality cardinality, String key, V value, Object... keyValues) { validateProperties(); return super.property(cardinality, key, value, keyValues); }
@Override protected Property createProperty(String key, Object value) { return new UniVertexProperty<>(this, key, value); }
@Override public Iterator<Property> properties(String... propertyKeys) { return propertyIterator(propertyKeys); }
private E getReturnElement(Edge edge, Vertex originalVertex) { if (!this.returnsVertex) return (E) edge; return (E) UniVertex.vertexToVertex(originalVertex, edge, this.direction); }
@Override protected Property createProperty(String key, Object value) { return new UniProperty<>(this, key, value); }
public UniGraph(ControllerManager controllerManager, StrategyProvider strategyProvider) throws Exception { init(controllerManager, strategyProvider); }
public static UniGraph open(final Configuration configuration) throws Exception { return new UniGraph(configuration); }
public UniBulkStep(Traversal.Admin traversal, UniGraph graph) { super(traversal); this.maxBulk = graph.configuration().getInt("bulk.max", 100); this.startBulk = graph.configuration().getInt("bulk.start", this.maxBulk); this.multiplier = graph.configuration().getInt("bulk.multiplier", 2); }
@Override public <V> Iterator<VertexProperty<V>> properties(String... propertyKeys) { validateProperties(); return super.properties(propertyKeys); }
@Override public Vertex createElement(Map<String, Object> fields) { Map<String, Object> properties = getProperties(fields); return new UniVertex(properties, this, graph); } }
@Override public Iterator<Vertex> vertices(Object... ids) { return this.query(Vertex.class, ids); }
@Override public <V> VertexProperty<V> property(String key) { validateProperties(); return super.property(key); }
@Override public Vertex createElement(Map<String, Object> fields) { Map<String, Object> properties = getProperties(fields); if (properties == null) return null; return new UniVertex(properties, this, graph); }
@Override public Vertex createElement(Map<String, Object> fields) { Map<String, Object> properties = getProperties(fields); if(properties == null) return null; return new UniVertex(properties, this, graph); }