public class BlazeVertex extends Object implements org.apache.tinkerpop.gremlin.structure.Vertex, BlazeElement
Vertex existence is represented as one triples as follows:
:vertexId rdf:type :label .
Vertex properties are represented as follows:
:vertexId :key "val" .
| Modifier and Type | Field and Description |
|---|---|
protected BlazeGraph |
graph
BlazeGraph instance this element belongs to. |
protected com.bigdata.rdf.model.BigdataURI |
label
The Literal representation of the element label.
|
protected com.bigdata.rdf.model.BigdataURI |
uri
The URI representation of the element id.
|
protected BlazeValueFactory |
vf
The
BlazeValueFactory provided by the graph for round-tripping
values. |
| Modifier and Type | Method and Description |
|---|---|
BlazeEdge |
addEdge(String label,
org.apache.tinkerpop.gremlin.structure.Vertex to,
Object... kvs) |
CloseableIterator<org.apache.tinkerpop.gremlin.structure.Edge> |
edges(org.apache.tinkerpop.gremlin.structure.Direction direction,
String... edgeLabels)
Strength return type to
CloseableIterator. |
boolean |
equals(Object object)
Delegates to
ElementHelper.areEqual(Element, Object) |
BlazeGraph |
graph()
Return the
BlazeGraph instance. |
int |
hashCode()
Delegates to
ElementHelper.hashCode(Element) |
String |
id()
Return element id.
|
String |
label()
Return element label.
|
<V> CloseableIterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> |
properties(String... keys)
Strength return type to
CloseableIterator. |
<V> BlazeVertexProperty<V> |
property(String key)
Strengthen return type to
BlazeVertexProperty. |
<V> BlazeVertexProperty<V> |
property(String key,
V val)
Strengthen return type to
BlazeVertexProperty and use
Cardinality.single by default. |
<V> BlazeVertexProperty<V> |
property(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality,
String key,
V val,
Object... kvs)
Strengthen return type to
BlazeVertexProperty. |
com.bigdata.rdf.model.BigdataURI |
rdfId()
Strengthen return type.
|
org.openrdf.model.URI |
rdfLabel()
Return the RDF representation of the label.
|
void |
remove() |
String |
toString()
Pass through to
StringFactory.vertexString(Vertex) |
CloseableIterator<org.apache.tinkerpop.gremlin.structure.Vertex> |
vertices(org.apache.tinkerpop.gremlin.structure.Direction direction,
String... edgeLabels)
Strength return type to
CloseableIterator. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgraph, keys, rdfLabel, valuesprotected final BlazeGraph graph
BlazeGraph instance this element belongs to.protected final BlazeValueFactory vf
BlazeValueFactory provided by the graph for round-tripping
values.protected final com.bigdata.rdf.model.BigdataURI uri
protected final com.bigdata.rdf.model.BigdataURI label
public com.bigdata.rdf.model.BigdataURI rdfId()
rdfId in interface BlazeElementpublic String toString()
StringFactory.vertexString(Vertex)public <V> BlazeVertexProperty<V> property(String key)
BlazeVertexProperty.property in interface org.apache.tinkerpop.gremlin.structure.Elementproperty in interface org.apache.tinkerpop.gremlin.structure.VertexVertex.property(String),
properties(String...)public <V> BlazeVertexProperty<V> property(String key, V val)
BlazeVertexProperty and use
Cardinality.single by default.property in interface org.apache.tinkerpop.gremlin.structure.Elementproperty in interface org.apache.tinkerpop.gremlin.structure.Vertexpublic <V> BlazeVertexProperty<V> property(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality, String key, V val, Object... kvs)
BlazeVertexProperty.property in interface org.apache.tinkerpop.gremlin.structure.VertexBlazeGraph#vertexProperty(BlazeVertex, Cardinality, String, Object, Object...)public <V> CloseableIterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> properties(String... keys)
CloseableIterator. You MUST close this
iterator when finished.properties in interface BlazeElementproperties in interface org.apache.tinkerpop.gremlin.structure.Elementproperties in interface org.apache.tinkerpop.gremlin.structure.Vertexpublic BlazeEdge addEdge(String label, org.apache.tinkerpop.gremlin.structure.Vertex to, Object... kvs)
addEdge in interface org.apache.tinkerpop.gremlin.structure.VertexVertex.addEdge(String, Vertex, Object...),
BlazeGraph.addEdge(BlazeVertex, BlazeVertex, String, Object...)public CloseableIterator<org.apache.tinkerpop.gremlin.structure.Edge> edges(org.apache.tinkerpop.gremlin.structure.Direction direction, String... edgeLabels)
CloseableIterator. You MUST close this
iterator when finished.edges in interface org.apache.tinkerpop.gremlin.structure.VertexVertex.edges(Direction, String...),
BlazeGraph.edgesFromVertex(BlazeVertex, Direction, String...)public CloseableIterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices(org.apache.tinkerpop.gremlin.structure.Direction direction, String... edgeLabels)
CloseableIterator. You MUST close this
iterator when finished.vertices in interface org.apache.tinkerpop.gremlin.structure.VertexVertex.vertices(Direction, String...)public void remove()
remove in interface org.apache.tinkerpop.gremlin.structure.ElementElement.remove(),
BlazeGraph.remove(BlazeVertex)public String id()
id in interface org.apache.tinkerpop.gremlin.structure.ElementElement.id()public String label()
label in interface org.apache.tinkerpop.gremlin.structure.ElementElement.label()public org.openrdf.model.URI rdfLabel()
rdfLabel in interface BlazeElementBlazeElement.rdfLabel()public BlazeGraph graph()
BlazeGraph instance.graph in interface BlazeElementgraph in interface org.apache.tinkerpop.gremlin.structure.Elementpublic int hashCode()
ElementHelper.hashCode(Element)Copyright © 2015–2016 SYSTAP, LLC DBA Blazegraph. All rights reserved.