public abstract class JanusGraphLazyRelation<V> extends Object implements InternalRelation
| Constructor and Description |
|---|
JanusGraphLazyRelation(Entry dataEntry,
InternalVertex vertex,
StandardJanusGraphTx tx,
InternalRelationType type) |
JanusGraphLazyRelation(InternalRelation janusGraphRelation,
InternalVertex vertex,
StandardJanusGraphTx tx,
InternalRelationType type) |
| 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.
|
boolean |
equals(Object other) |
int |
getArity()
Number of vertices on this relation.
|
Object |
getCompareId() |
int |
getLen()
Number of vertices on this relation that are aware of its existence.
|
byte |
getLifeCycle() |
Iterable<PropertyKey> |
getPropertyKeysDirect() |
RelationType |
getType()
Returns the type of this relation.
|
<O> O |
getValueDirect(PropertyKey key) |
InternalVertex |
getVertex(int pos)
Returns the vertex at the given position (0=OUT, 1=IN) of this relation
|
JanusGraphTransaction |
graph() |
int |
hashCode() |
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 |
isInvisible()
Whether this element is invisible and should only be returned to queries that explicitly ask for invisible elements.
|
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 |
isProperty()
Checks whether this relation is a property.
|
boolean |
isRemoved()
Checks whether this entity has been deleted into the current transaction.
|
boolean |
isSingle() |
InternalRelation |
it()
Returns this relation in the current transactional context
|
String |
label() |
InternalRelation |
loadValue() |
long |
longId()
Returns the long-type representation of ID
|
<V> Iterator<? extends org.apache.tinkerpop.gremlin.structure.Property<V>> |
properties(String... propertyKeys) |
<V> org.apache.tinkerpop.gremlin.structure.Property<V> |
property(String s,
V 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.
|
<O> O |
removePropertyDirect(PropertyKey key) |
void |
setId(Object id) |
void |
setPropertyDirect(PropertyKey key,
Object value) |
String |
toString() |
StandardJanusGraphTx |
tx()
Returns the transaction to which the element is currently bound or should be refreshed into
|
V |
value() |
V |
value(String s)
Retrieves the value associated with the given key on this vertex and casts it to the specified type.
|
<V> V |
valueOrNull(PropertyKey propertyKey)
Retrieves the value associated with the given key on this element and casts it to the specified type.
|
public JanusGraphLazyRelation(InternalRelation janusGraphRelation, InternalVertex vertex, StandardJanusGraphTx tx, InternalRelationType type)
public JanusGraphLazyRelation(Entry dataEntry, InternalVertex vertex, StandardJanusGraphTx tx, InternalRelationType type)
public InternalRelation loadValue()
public V value()
public V value(String s)
JanusGraphRelationvalue in interface org.apache.tinkerpop.gremlin.structure.Elementvalue in interface JanusGraphRelations - string identifying a keypublic boolean isSingle()
public 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 JanusGraphRelationJanusGraphEdgepublic String label()
label in interface org.apache.tinkerpop.gremlin.structure.Elementpublic StandardJanusGraphTx tx()
InternalElementtx in interface InternalElementpublic JanusGraphTransaction graph()
graph in interface org.apache.tinkerpop.gremlin.structure.Elementgraph in interface JanusGraphElementgraph in interface InternalElementpublic void setId(Object id)
setId in interface InternalElementpublic 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 Object getCompareId()
getCompareId in interface InternalElementpublic byte getLifeCycle()
getLifeCycle in interface InternalElementElementLifeCyclepublic boolean isInvisible()
InternalElementisInvisible in interface InternalElementpublic 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 void remove()
JanusGraphElementremove in interface org.apache.tinkerpop.gremlin.structure.Elementremove in interface JanusGraphElementremove in interface Removablepublic <V> Iterator<? extends org.apache.tinkerpop.gremlin.structure.Property<V>> properties(String... propertyKeys)
properties in interface org.apache.tinkerpop.gremlin.structure.Elementpublic <V> org.apache.tinkerpop.gremlin.structure.Property<V> property(String s, V 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 <V> V valueOrNull(PropertyKey propertyKey)
JanusGraphElementvalueOrNull in interface JanusGraphElementpropertyKey - keypublic boolean isNew()
JanusGraphElementisNew in interface JanusGraphElementpublic boolean isLoaded()
JanusGraphElementisLoaded in interface JanusGraphElementpublic boolean isRemoved()
JanusGraphElementisRemoved in interface JanusGraphElementpublic InternalRelation it()
InternalRelationit in interface InternalElementit in interface InternalRelationpublic InternalVertex getVertex(int pos)
InternalRelationgetVertex in interface InternalRelationpublic int getArity()
InternalRelationgetArity in interface InternalRelationpublic int getLen()
InternalRelationInternalRelation.getArity()getLen in interface InternalRelationpublic <O> O getValueDirect(PropertyKey key)
getValueDirect in interface InternalRelationpublic void setPropertyDirect(PropertyKey key, Object value)
setPropertyDirect in interface InternalRelationpublic Iterable<PropertyKey> getPropertyKeysDirect()
getPropertyKeysDirect in interface InternalRelationpublic <O> O removePropertyDirect(PropertyKey key)
removePropertyDirect in interface InternalRelationCopyright © 2012–2024. All rights reserved.