public abstract class AbstractVertex extends AbstractElement implements InternalVertex, org.apache.tinkerpop.gremlin.structure.Vertex
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractVertex(StandardTitanTx tx,
long id) |
| Modifier and Type | Method and Description |
|---|---|
TitanEdge |
addEdge(String label,
org.apache.tinkerpop.gremlin.structure.Vertex vertex,
Object... keyValues)
Creates a new edge incident on this vertex.
|
Iterator<org.apache.tinkerpop.gremlin.structure.Edge> |
edges(org.apache.tinkerpop.gremlin.structure.Direction direction,
String... labels) |
long |
getCompareId()
Long identifier used to compare elements.
|
protected org.apache.tinkerpop.gremlin.structure.Vertex |
getVertexLabelInternal() |
Object |
id()
Returns a unique identifier for this entity.
|
boolean |
isModified()
Checks whether this entity has been loaded into the current transaction and modified.
|
InternalVertex |
it()
Returns this element in the context of the current transaction.
|
String |
label()
Returns the name of the vertex label for this vertex.
|
<V> Iterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> |
properties(String... keys) |
<V> TitanVertexProperty<V> |
property(String key,
V value,
Object... keyValues) |
<V> TitanVertexProperty<V> |
property(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality,
String key,
V value,
Object... keyValues) |
VertexCentricQueryBuilder |
query()
Starts a new
TitanVertexQuery for this vertex. |
void |
remove()
Deletes this entity and any incident edges or properties from the graph.
|
String |
toString() |
StandardTitanTx |
tx()
Returns the transaction to which the element is currently bound or should be refreshed into
|
<O> O |
valueOrNull(PropertyKey key)
Retrieves the value associated with the given key on this element and casts it to the specified type.
|
protected void |
verifyAccess() |
VertexLabel |
vertexLabel()
Returns the vertex label of this vertex.
|
Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> |
vertices(org.apache.tinkerpop.gremlin.structure.Direction direction,
String... edgeLabels) |
clone, compare, compareTo, equals, hashCode, hasId, isInvisible, isLoaded, isNew, isRemoved, isTemporaryId, longId, setIdfinalize, getClass, notify, notifyAll, wait, wait, waitaddRelation, getAddedRelations, hasAddedRelations, hasLoadedRelations, hasRemovedRelations, loadRelations, removeRelationpropertygetLifeCycle, graph, isInvisible, setIdprotected AbstractVertex(StandardTitanTx tx, long id)
public final InternalVertex it()
InternalElementit in interface InternalElementit in interface InternalVertexpublic final StandardTitanTx tx()
InternalElementtx in interface InternalElementpublic long getCompareId()
AbstractElementAbstractElement.longId()
but some instances of elements may be considered the same even if their ids differ. In that case,
this method should be overwritten to return an id that can be used for comparison.getCompareId in class AbstractElementpublic Object id()
TitanElementGraphDatabaseConfiguration.ALLOW_SETTING_VERTEX_IDid in interface TitanElementid in interface org.apache.tinkerpop.gremlin.structure.ElementTitanElement.hasId()public boolean isModified()
TitanVertexisModified in interface TitanVertexprotected final void verifyAccess()
public void remove()
TitanElementremove in interface TitanElementremove in interface Removableremove in interface org.apache.tinkerpop.gremlin.structure.Elementpublic String label()
TitanVertexlabel in interface TitanVertexlabel in interface org.apache.tinkerpop.gremlin.structure.Elementprotected org.apache.tinkerpop.gremlin.structure.Vertex getVertexLabelInternal()
public VertexLabel vertexLabel()
TitanVertexvertexLabel in interface TitanVertexpublic VertexCentricQueryBuilder query()
TitanVertexTitanVertexQuery for this vertex.
Initializes and returns a new TitanVertexQuery based on this vertex.query in interface TitanVertexquery in interface InternalVertexTitanVertexQuerypublic <O> O valueOrNull(PropertyKey key)
TitanElementvalueOrNull in interface TitanElementkey - keypublic <V> TitanVertexProperty<V> property(String key, V value, Object... keyValues)
property in interface TitanVertexproperty in interface org.apache.tinkerpop.gremlin.structure.Vertexpublic <V> TitanVertexProperty<V> property(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality, String key, V value, Object... keyValues)
property in interface TitanVertexproperty in interface org.apache.tinkerpop.gremlin.structure.Vertexpublic TitanEdge addEdge(String label, org.apache.tinkerpop.gremlin.structure.Vertex vertex, Object... keyValues)
TitanVertexTitanEdge of the specified label with this vertex being the outgoing vertex
and the given vertex being the incoming vertex.
IllegalArgumentException.addEdge in interface TitanVertexaddEdge in interface org.apache.tinkerpop.gremlin.structure.Vertexlabel - label of the edge to be createdvertex - incoming vertex of the edge to be createdpublic Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edges(org.apache.tinkerpop.gremlin.structure.Direction direction, String... labels)
edges in interface org.apache.tinkerpop.gremlin.structure.Vertexpublic <V> Iterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> properties(String... keys)
properties in interface org.apache.tinkerpop.gremlin.structure.Elementproperties in interface org.apache.tinkerpop.gremlin.structure.VertexCopyright © 2012–2015. All rights reserved.