Class Attachable.Method
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.structure.util.Attachable.Method
 
- 
- Enclosing interface:
- Attachable<V>
 
 public static class Attachable.Method extends Object 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 SummaryConstructors Constructor Description Method()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static <V> Function<Attachable<V>,V>create(Host hostVertexOrGraph)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>get(Host hostVertexOrGraph)static Optional<Edge>getEdge(Attachable<Edge> attachableEdge, Graph hostGraph)static Optional<Edge>getEdge(Attachable<Edge> attachableEdge, Vertex hostVertex)static <V> Function<Attachable<V>,V>getOrCreate(Host hostVertexOrGraph)static Optional<Property>getProperty(Attachable<Property> attachableProperty, Graph hostGraph)static Optional<Property>getProperty(Attachable<Property> attachableProperty, Vertex hostVertex)static Optional<Vertex>getVertex(Attachable<Vertex> attachableVertex, Graph hostGraph)static Optional<Vertex>getVertex(Attachable<Vertex> attachableVertex, Vertex hostVertex)static Optional<VertexProperty>getVertexProperty(Attachable<VertexProperty> attachableVertexProperty, Graph hostGraph)static Optional<VertexProperty>getVertexProperty(Attachable<VertexProperty> attachableVertexProperty, Vertex hostVertex)
 
- 
- 
- 
Method Detail- 
getpublic static <V> Function<Attachable<V>,V> get(Host hostVertexOrGraph) 
 - 
getOrCreatepublic static <V> Function<Attachable<V>,V> getOrCreate(Host hostVertexOrGraph) 
 - 
createpublic static <V> Function<Attachable<V>,V> create(Host hostVertexOrGraph) 
 - 
getVertexpublic static Optional<Vertex> getVertex(Attachable<Vertex> attachableVertex, Graph hostGraph) 
 - 
getVertexpublic static Optional<Vertex> getVertex(Attachable<Vertex> attachableVertex, Vertex hostVertex) 
 - 
getEdgepublic static Optional<Edge> getEdge(Attachable<Edge> attachableEdge, Graph hostGraph) 
 - 
getEdgepublic static Optional<Edge> getEdge(Attachable<Edge> attachableEdge, Vertex hostVertex) 
 - 
getVertexPropertypublic static Optional<VertexProperty> getVertexProperty(Attachable<VertexProperty> attachableVertexProperty, Graph hostGraph) 
 - 
getVertexPropertypublic static Optional<VertexProperty> getVertexProperty(Attachable<VertexProperty> attachableVertexProperty, Vertex hostVertex) 
 - 
getPropertypublic static Optional<Property> getProperty(Attachable<Property> attachableProperty, Graph hostGraph) 
 - 
getPropertypublic static Optional<Property> getProperty(Attachable<Property> attachableProperty, Vertex hostVertex) 
 - 
createVertexpublic static Vertex createVertex(Attachable<Vertex> attachableVertex, Graph hostGraph) 
 - 
createVertexpublic static Vertex createVertex(Attachable<Vertex> attachableVertex, Vertex hostVertex) 
 - 
createEdgepublic static Edge createEdge(Attachable<Edge> attachableEdge, Graph hostGraph) 
 - 
createEdgepublic static Edge createEdge(Attachable<Edge> attachableEdge, Vertex hostVertex) 
 - 
createVertexPropertypublic static VertexProperty createVertexProperty(Attachable<VertexProperty> attachableVertexProperty, Graph hostGraph) 
 - 
createVertexPropertypublic static VertexProperty createVertexProperty(Attachable<VertexProperty> attachableVertexProperty, Vertex hostVertex) 
 - 
createPropertypublic static Property createProperty(Attachable<Property> attachableProperty, Graph hostGraph) 
 - 
createPropertypublic static Property createProperty(Attachable<Property> attachableProperty, Vertex hostVertex) 
 
- 
 
-