Package uk.gov.gchq.gaffer.tinkerpop
Class GafferPopVertex
- java.lang.Object
-
- uk.gov.gchq.gaffer.tinkerpop.GafferPopElement
-
- uk.gov.gchq.gaffer.tinkerpop.GafferPopVertex
-
- All Implemented Interfaces:
org.apache.tinkerpop.gremlin.structure.Element
,org.apache.tinkerpop.gremlin.structure.util.Host
,org.apache.tinkerpop.gremlin.structure.Vertex
public class GafferPopVertex extends GafferPopElement implements org.apache.tinkerpop.gremlin.structure.Vertex
-
-
Constructor Summary
Constructors Constructor Description GafferPopVertex(String label, Object id, GafferPopGraph graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.tinkerpop.gremlin.structure.Edge
addEdge(String label, org.apache.tinkerpop.gremlin.structure.Vertex vertex, Object... keyValues)
Iterator<org.apache.tinkerpop.gremlin.structure.Edge>
edges(org.apache.tinkerpop.gremlin.structure.Direction direction, String... edgeLabels)
Iterator<org.apache.tinkerpop.gremlin.structure.Edge>
edges(org.apache.tinkerpop.gremlin.structure.Direction direction, View view)
Set<String>
keys()
<V> Iterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>>
properties(String... propertyKeys)
<V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V>
property(String key)
<V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V>
property(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality, String key, V value, Object... keyValues)
<V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V>
propertyWithoutUpdate(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality, String key, V value, Object... keyValues)
Updates the properties attached to this Vertex 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, String... edgeLabels)
Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>
vertices(org.apache.tinkerpop.gremlin.structure.Direction direction, View view)
-
Methods inherited from class uk.gov.gchq.gaffer.tinkerpop.GafferPopElement
equals, graph, hashCode, id, isReadOnly, label, setReadOnly
-
-
-
-
Constructor Detail
-
GafferPopVertex
public GafferPopVertex(String label, Object id, GafferPopGraph graph)
-
-
Method Detail
-
property
public <V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V> property(String key)
- Specified by:
property
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
- Specified by:
property
in interfaceorg.apache.tinkerpop.gremlin.structure.Vertex
-
property
public <V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V> property(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality, String key, V value, Object... keyValues)
- Specified by:
property
in interfaceorg.apache.tinkerpop.gremlin.structure.Vertex
-
properties
public <V> Iterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> properties(String... propertyKeys)
- Specified by:
properties
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
- Specified by:
properties
in interfaceorg.apache.tinkerpop.gremlin.structure.Vertex
-
propertyWithoutUpdate
public <V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V> propertyWithoutUpdate(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality, String key, V value, Object... keyValues)
Updates the properties attached to this Vertex but without modifying the underlying graph. This method is largely a helper for generating GafferPopVertex objects from Gaffer Entities returned from the graph. In this situation we want to be able to create a representative Vertex but without modifying the one stored in the graph.- Type Parameters:
V
- Value type- Parameters:
cardinality
- The cardinalitykey
- The property keyvalue
- The property valuekeyValues
- Additional key value pairs- Returns:
- The VertexProperty
-
addEdge
public org.apache.tinkerpop.gremlin.structure.Edge addEdge(String label, org.apache.tinkerpop.gremlin.structure.Vertex vertex, Object... keyValues)
- Specified by:
addEdge
in interfaceorg.apache.tinkerpop.gremlin.structure.Vertex
-
edges
public Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edges(org.apache.tinkerpop.gremlin.structure.Direction direction, String... edgeLabels)
- Specified by:
edges
in interfaceorg.apache.tinkerpop.gremlin.structure.Vertex
-
edges
public Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edges(org.apache.tinkerpop.gremlin.structure.Direction direction, View view)
-
vertices
public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices(org.apache.tinkerpop.gremlin.structure.Direction direction, String... edgeLabels)
- Specified by:
vertices
in interfaceorg.apache.tinkerpop.gremlin.structure.Vertex
-
vertices
public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices(org.apache.tinkerpop.gremlin.structure.Direction direction, View view)
-
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
-
-