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, wait
empty, getRemover, graph, propertyKey
public 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>
NoSuchElementException
public boolean isPresent()
isPresent
in interface org.apache.tinkerpop.gremlin.structure.Property<V>
public JanusGraphVertex element()
JanusGraphVertexProperty
element
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()
JanusGraphElement
remove
in interface org.apache.tinkerpop.gremlin.structure.Element
remove
in interface org.apache.tinkerpop.gremlin.structure.Property<V>
remove
in interface JanusGraphElement
remove
in interface Removable
public Object id()
JanusGraphElement
The 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.Element
id
in interface Idfiable
id
in interface JanusGraphElement
JanusGraphElement.hasId()
public long longId()
JanusGraphRelation
longId
in interface JanusGraphRelation
public boolean hasId()
JanusGraphElement
Note 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 JanusGraphElement
public <A> org.apache.tinkerpop.gremlin.structure.Property<A> property(String s, A v)
JanusGraphElement
Cardinality.SINGLE
, otherwise this method throws an exception.property
in interface org.apache.tinkerpop.gremlin.structure.Element
property
in interface JanusGraphElement
s
- the string identifying the keyv
- the object valuepublic <A> A valueOrNull(PropertyKey key)
JanusGraphElement
valueOrNull
in interface JanusGraphElement
key
- keypublic boolean isNew()
JanusGraphElement
isNew
in interface JanusGraphElement
public boolean isLoaded()
JanusGraphElement
isLoaded
in interface JanusGraphElement
public boolean isRemoved()
JanusGraphElement
isRemoved
in interface JanusGraphElement
public <A> A value(String key)
JanusGraphRelation
value
in interface org.apache.tinkerpop.gremlin.structure.Element
value
in interface JanusGraphRelation
key
- 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 JanusGraphRelation
public org.apache.tinkerpop.gremlin.structure.Direction direction(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
JanusGraphRelation
direction
in interface JanusGraphRelation
vertex
- vertex on which the relation is incidentpublic boolean isIncidentOn(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
JanusGraphRelation
isIncidentOn
in interface JanusGraphRelation
vertex
- vertex to check incidence forpublic boolean isLoop()
JanusGraphRelation
isLoop
in interface JanusGraphRelation
public boolean isProperty()
JanusGraphRelation
isProperty
in interface JanusGraphRelation
JanusGraphVertexProperty
public boolean isEdge()
JanusGraphRelation
isEdge
in interface JanusGraphRelation
JanusGraphEdge
Copyright © 2012–2024. All rights reserved.