Package uk.gov.gchq.gaffer.tinkerpop
Class GafferPopEdge
- java.lang.Object
-
- uk.gov.gchq.gaffer.tinkerpop.GafferPopElement
-
- uk.gov.gchq.gaffer.tinkerpop.GafferPopEdge
-
- All Implemented Interfaces:
org.apache.tinkerpop.gremlin.structure.Edge
,org.apache.tinkerpop.gremlin.structure.Element
public final class GafferPopEdge extends GafferPopElement implements org.apache.tinkerpop.gremlin.structure.Edge
AGafferPopEdge
is anGafferPopElement
andEdge
.An ID is required to be a List which contains the source, group, and destination of an edge.
-
-
Constructor Summary
Constructors Constructor Description GafferPopEdge(String label, Object outVertex, Object inVertex, GafferPopGraph graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.tinkerpop.gremlin.structure.Vertex
inVertex()
Set<String>
keys()
org.apache.tinkerpop.gremlin.structure.Vertex
outVertex()
<V> Iterator<org.apache.tinkerpop.gremlin.structure.Property<V>>
properties(String... propertyKeys)
<V> org.apache.tinkerpop.gremlin.structure.Property<V>
property(String key)
<V> org.apache.tinkerpop.gremlin.structure.Property<V>
property(String key, V value)
<V> org.apache.tinkerpop.gremlin.structure.Property<V>
propertyWithoutUpdate(String key, V value)
Updates the properties attached to this Edge but without modifying the underlying graph.void
remove()
String
toString()
Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>
vertices(org.apache.tinkerpop.gremlin.structure.Direction direction)
-
Methods inherited from class uk.gov.gchq.gaffer.tinkerpop.GafferPopElement
equals, graph, hashCode, id, isReadOnly, label, setReadOnly
-
-
-
-
Constructor Detail
-
GafferPopEdge
public GafferPopEdge(String label, Object outVertex, Object inVertex, GafferPopGraph graph)
-
-
Method Detail
-
property
public <V> org.apache.tinkerpop.gremlin.structure.Property<V> property(String key, V value)
- Specified by:
property
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
property
public <V> org.apache.tinkerpop.gremlin.structure.Property<V> property(String key)
- Specified by:
property
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
properties
public <V> Iterator<org.apache.tinkerpop.gremlin.structure.Property<V>> properties(String... propertyKeys)
- Specified by:
properties
in interfaceorg.apache.tinkerpop.gremlin.structure.Edge
- Specified by:
properties
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
propertyWithoutUpdate
public <V> org.apache.tinkerpop.gremlin.structure.Property<V> propertyWithoutUpdate(String key, V value)
Updates the properties attached to this Edge but without modifying the underlying graph. This method is largely a helper for generating GafferPopEdge objects from Gaffer Edge returned from the graph. In this situation we want to be able to create a representative GafferPopEdge but without modifying the one stored in the graph.- Type Parameters:
V
- Value type- Parameters:
key
- The keyvalue
- The value- Returns:
- The property
-
vertices
public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices(org.apache.tinkerpop.gremlin.structure.Direction direction)
- Specified by:
vertices
in interfaceorg.apache.tinkerpop.gremlin.structure.Edge
-
keys
public Set<String> keys()
- Specified by:
keys
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
remove
public void remove()
- Specified by:
remove
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
- Overrides:
remove
in classGafferPopElement
-
outVertex
public org.apache.tinkerpop.gremlin.structure.Vertex outVertex()
- Specified by:
outVertex
in interfaceorg.apache.tinkerpop.gremlin.structure.Edge
-
inVertex
public org.apache.tinkerpop.gremlin.structure.Vertex inVertex()
- Specified by:
inVertex
in interfaceorg.apache.tinkerpop.gremlin.structure.Edge
-
-