Class Attachable.Method
java.lang.Object
org.apache.tinkerpop.gremlin.structure.util.Attachable.Method
- Enclosing interface:
- Attachable<V>
A collection of general methods of attachment. Note that more efficient methods of attachment might exist
if the user knows the source data being attached and the features of the graph that the data is being
attached to.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <V> Function<Attachable<V>,V> static EdgecreateEdge(Attachable<Edge> attachableEdge, Graph hostGraph) static EdgecreateEdge(Attachable<Edge> attachableEdge, Vertex hostVertex) static PropertycreateProperty(Attachable<Property> attachableProperty, Graph hostGraph) static PropertycreateProperty(Attachable<Property> attachableProperty, Vertex hostVertex) static VertexcreateVertex(Attachable<Vertex> attachableVertex, Graph hostGraph) static VertexcreateVertex(Attachable<Vertex> attachableVertex, Vertex hostVertex) static VertexPropertycreateVertexProperty(Attachable<VertexProperty> attachableVertexProperty, Graph hostGraph) static VertexPropertycreateVertexProperty(Attachable<VertexProperty> attachableVertexProperty, Vertex hostVertex) static <V> Function<Attachable<V>,V> getEdge(Attachable<Edge> attachableEdge, Graph hostGraph) getEdge(Attachable<Edge> attachableEdge, Vertex hostVertex) static <V> Function<Attachable<V>,V> getOrCreate(Host hostVertexOrGraph) getProperty(Attachable<Property> attachableProperty, Graph hostGraph) getProperty(Attachable<Property> attachableProperty, Vertex hostVertex) getVertex(Attachable<Vertex> attachableVertex, Graph hostGraph) getVertex(Attachable<Vertex> attachableVertex, Vertex hostVertex) static Optional<VertexProperty>getVertexProperty(Attachable<VertexProperty> attachableVertexProperty, Graph hostGraph) static Optional<VertexProperty>getVertexProperty(Attachable<VertexProperty> attachableVertexProperty, Vertex hostVertex)
-
Constructor Details
-
Method
public Method()
-
-
Method Details
-
get
-
getOrCreate
-
create
-
getVertex
-
getVertex
-
getEdge
-
getEdge
-
getVertexProperty
public static Optional<VertexProperty> getVertexProperty(Attachable<VertexProperty> attachableVertexProperty, Graph hostGraph) -
getVertexProperty
public static Optional<VertexProperty> getVertexProperty(Attachable<VertexProperty> attachableVertexProperty, Vertex hostVertex) -
getProperty
public static Optional<Property> getProperty(Attachable<Property> attachableProperty, Graph hostGraph) -
getProperty
public static Optional<Property> getProperty(Attachable<Property> attachableProperty, Vertex hostVertex) -
createVertex
-
createVertex
-
createEdge
-
createEdge
-
createVertexProperty
public static VertexProperty createVertexProperty(Attachable<VertexProperty> attachableVertexProperty, Graph hostGraph) -
createVertexProperty
public static VertexProperty createVertexProperty(Attachable<VertexProperty> attachableVertexProperty, Vertex hostVertex) -
createProperty
-
createProperty
-