Class TinkerVertex
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerElement
-
- org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerVertex
-
public class TinkerVertex extends TinkerElement implements Vertex
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Element
Element.Exceptions
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Vertex
Vertex.Exceptions
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractTinkerGraph
graph
protected Map<String,Set<Edge>>
inEdges
protected Map<String,Set<Object>>
inEdgesId
protected Map<String,Set<Edge>>
outEdges
protected Map<String,Set<Object>>
outEdgesId
protected Map<String,List<VertexProperty>>
properties
-
Fields inherited from class org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerElement
currentVersion, id, label, removed
-
Fields inherited from interface org.apache.tinkerpop.gremlin.structure.Vertex
DEFAULT_LABEL, EMPTY_ARGS
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TinkerVertex(Object id, String label, AbstractTinkerGraph graph)
protected
TinkerVertex(Object id, String label, AbstractTinkerGraph graph, long currentVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Edge
addEdge(String label, Vertex vertex, Object... keyValues)
Object
clone()
protected <V> TinkerVertexProperty<V>
createTinkerVertexProperty(Object id, TinkerVertex vertex, String key, V value, Object... propertyKeyValues)
protected <V> TinkerVertexProperty<V>
createTinkerVertexProperty(TinkerVertex vertex, String key, V value, Object... propertyKeyValues)
Iterator<Edge>
edges(Direction direction, String... edgeLabels)
Graph
graph()
Set<String>
keys()
<V> Iterator<VertexProperty<V>>
properties(String... propertyKeys)
<V> VertexProperty<V>
property(String key)
<V> VertexProperty<V>
property(VertexProperty.Cardinality cardinality, String key, V value, Object... keyValues)
void
remove()
String
toString()
Iterator<Vertex>
vertices(Direction direction, String... edgeLabels)
-
Methods inherited from class org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerElement
elementAlreadyRemoved, equals, hashCode, id, label, version
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
properties
protected Map<String,List<VertexProperty>> properties
-
graph
protected final AbstractTinkerGraph graph
-
-
Constructor Detail
-
TinkerVertex
protected TinkerVertex(Object id, String label, AbstractTinkerGraph graph)
-
TinkerVertex
protected TinkerVertex(Object id, String label, AbstractTinkerGraph graph, long currentVersion)
-
-
Method Detail
-
clone
public Object clone()
- Specified by:
clone
in classTinkerElement
-
property
public <V> VertexProperty<V> property(String key)
-
property
public <V> VertexProperty<V> property(VertexProperty.Cardinality cardinality, String key, V value, Object... keyValues)
-
createTinkerVertexProperty
protected <V> TinkerVertexProperty<V> createTinkerVertexProperty(TinkerVertex vertex, String key, V value, Object... propertyKeyValues)
-
createTinkerVertexProperty
protected <V> TinkerVertexProperty<V> createTinkerVertexProperty(Object id, TinkerVertex vertex, String key, V value, Object... propertyKeyValues)
-
properties
public <V> Iterator<VertexProperty<V>> properties(String... propertyKeys)
- Specified by:
properties
in interfaceElement
- Specified by:
properties
in interfaceVertex
-
-