public class FulgoraVertexProperty<V> extends Object implements JanusGraphVertexProperty<V>
| Constructor and Description |
|---|
FulgoraVertexProperty(org.janusgraph.graphdb.olap.computer.VertexMemoryHandler mixinParent,
JanusGraphVertex vertex,
String key,
V value) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.tinkerpop.gremlin.structure.Direction |
direction(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
Returns the direction of this relation from the perspective of the specified vertex.
|
JanusGraphVertex |
element()
Returns the vertex on which this property is incident.
|
RelationType |
getType()
Returns the type of this relation.
|
boolean |
hasId()
Checks whether this entity has a unique identifier.
|
Object |
id()
Returns a unique identifier for this entity.
|
boolean |
isEdge()
Checks whether this relation is an edge.
|
boolean |
isIncidentOn(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
Checks whether this relation is incident on the specified vertex.
|
boolean |
isLoaded()
Checks whether this entity has been loaded into the current transaction and not yet modified.
|
boolean |
isLoop()
Checks whether this relation is a loop.
|
boolean |
isNew()
Checks whether this entity has been newly created in the current transaction.
|
boolean |
isPresent() |
boolean |
isProperty()
Checks whether this relation is a property.
|
boolean |
isRemoved()
Checks whether this entity has been deleted into the current transaction.
|
String |
key() |
long |
longId()
Returns the long-type representation of ID
|
<A> Iterator<org.apache.tinkerpop.gremlin.structure.Property<A>> |
properties(String... propertyKeys) |
<A> org.apache.tinkerpop.gremlin.structure.Property<A> |
property(String s,
A v)
Sets the value for the given key on this element.
|
void |
remove()
Deletes this entity and any incident edges or properties from the graph.
|
V |
value() |
<A> A |
value(String key)
Retrieves the value associated with the given key on this vertex and casts it to the specified type.
|
<A> A |
valueOrNull(PropertyKey key)
Retrieves the value associated with the given key on this element and casts it to the specified type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitempty, getRemover, graph, propertyKeypublic FulgoraVertexProperty(org.janusgraph.graphdb.olap.computer.VertexMemoryHandler mixinParent,
JanusGraphVertex vertex,
String key,
V value)
public String key()
key in interface org.apache.tinkerpop.gremlin.structure.Property<V>key in interface JanusGraphProperty<V>public V value() throws NoSuchElementException
value in interface org.apache.tinkerpop.gremlin.structure.Property<V>NoSuchElementExceptionpublic boolean isPresent()
isPresent in interface org.apache.tinkerpop.gremlin.structure.Property<V>public JanusGraphVertex element()
JanusGraphVertexPropertyelement in interface org.apache.tinkerpop.gremlin.structure.Property<V>element in interface org.apache.tinkerpop.gremlin.structure.VertexProperty<V>element in interface JanusGraphVertexProperty<V>public void remove()
JanusGraphElementremove in interface org.apache.tinkerpop.gremlin.structure.Elementremove in interface org.apache.tinkerpop.gremlin.structure.Property<V>remove in interface JanusGraphElementremove in interface Removablepublic Object id()
JanusGraphElementThe unique identifier may only be set when the transaction in which entity is created commits. Some entities are never assigned a unique identifier if they depend on a parent entity.
JanusGraph allocates blocks of identifiers and automatically assigns identifiers to elements
automatically be default. This behavior can be partially overridden by setting
GraphDatabaseConfiguration.ALLOW_SETTING_VERTEX_ID
id in interface org.apache.tinkerpop.gremlin.structure.Elementid in interface Idfiableid in interface JanusGraphElementJanusGraphElement.hasId()public long longId()
JanusGraphRelationlongId in interface JanusGraphRelationpublic boolean hasId()
JanusGraphElementNote that some entities may never be assigned an identifier and others will only be assigned an identifier at the end of a transaction.
hasId in interface JanusGraphElementpublic <A> org.apache.tinkerpop.gremlin.structure.Property<A> property(String s, A v)
JanusGraphElementCardinality.SINGLE, otherwise this method throws an exception.property in interface org.apache.tinkerpop.gremlin.structure.Elementproperty in interface JanusGraphElements - the string identifying the keyv - the object valuepublic <A> A valueOrNull(PropertyKey key)
JanusGraphElementvalueOrNull in interface JanusGraphElementkey - keypublic boolean isNew()
JanusGraphElementisNew in interface JanusGraphElementpublic boolean isLoaded()
JanusGraphElementisLoaded in interface JanusGraphElementpublic boolean isRemoved()
JanusGraphElementisRemoved in interface JanusGraphElementpublic <A> A value(String key)
JanusGraphRelationvalue in interface org.apache.tinkerpop.gremlin.structure.Elementvalue in interface JanusGraphRelationkey - string identifying a keypublic RelationType getType()
JanusGraphRelation
The type is either a label (EdgeLabel if this relation is an edge or a key (PropertyKey) if this
relation is a property.
getType in interface JanusGraphRelationpublic org.apache.tinkerpop.gremlin.structure.Direction direction(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
JanusGraphRelationdirection in interface JanusGraphRelationvertex - vertex on which the relation is incidentpublic boolean isIncidentOn(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
JanusGraphRelationisIncidentOn in interface JanusGraphRelationvertex - vertex to check incidence forpublic boolean isLoop()
JanusGraphRelationisLoop in interface JanusGraphRelationpublic boolean isProperty()
JanusGraphRelationisProperty in interface JanusGraphRelationJanusGraphVertexPropertypublic boolean isEdge()
JanusGraphRelationisEdge in interface JanusGraphRelationJanusGraphEdgeCopyright © 2012–2024. All rights reserved.