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 AbstractTinkerGraphgraphprotected Map<String,Set<Edge>>inEdgesprotected Map<String,Set<Object>>inEdgesIdprotected Map<String,Set<Edge>>outEdgesprotected Map<String,Set<Object>>outEdgesIdprotected 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 protectedTinkerVertex(Object id, String label, AbstractTinkerGraph graph)protectedTinkerVertex(Object id, String label, AbstractTinkerGraph graph, long currentVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EdgeaddEdge(String label, Vertex vertex, Object... keyValues)Objectclone()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)Graphgraph()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)voidremove()StringtoString()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:
clonein 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:
propertiesin interfaceElement- Specified by:
propertiesin interfaceVertex
-
-