G
- the type of the graph that owns this vertex@ParametersAreNonnullByDefault public class IdVertex<G extends IdGraph<G>> extends IdElement<com.tinkerpop.blueprints.Vertex,G> implements com.tinkerpop.blueprints.Vertex
Vertex
able to map the result of each method call to a dedicated implementation.
Re-implemented from com.tinkerpop.blueprints.util.wrappers.id.IdVertex
.
propertyBased
graph
base
Constructor and Description |
---|
IdVertex(com.tinkerpop.blueprints.Vertex baseVertex,
G graph)
Constructs a new
IdVertex . |
Modifier and Type | Method and Description |
---|---|
com.tinkerpop.blueprints.Edge |
addEdge(String label,
com.tinkerpop.blueprints.Vertex vertex) |
<E extends com.tinkerpop.blueprints.Edge> |
addEdge(String label,
com.tinkerpop.blueprints.Vertex vertex,
BiFunction<com.tinkerpop.blueprints.Edge,G,E> mappingFunc)
Add a new outgoing edge from this vertex to the parameter vertex with provided edge label.
|
Optional<com.tinkerpop.blueprints.Edge> |
getEdge(com.tinkerpop.blueprints.Direction direction,
String label)
Return the only edge incident to the vertex according to the provided direction and edge label.
|
<E extends com.tinkerpop.blueprints.Edge> |
getEdge(com.tinkerpop.blueprints.Direction direction,
String label,
BiFunction<com.tinkerpop.blueprints.Edge,G,E> mappingFunc)
Return the only edge incident to the vertex according to the provided direction and edge label.
|
Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(com.tinkerpop.blueprints.Direction direction,
String... labels) |
<E extends com.tinkerpop.blueprints.Edge> |
getEdges(com.tinkerpop.blueprints.Direction direction,
String[] labels,
BiFunction<com.tinkerpop.blueprints.Edge,G,E> mappingFunc)
Return the edges incident to the vertex according to the provided direction and edge labels.
|
Optional<com.tinkerpop.blueprints.Vertex> |
getVertex(com.tinkerpop.blueprints.Direction direction,
String label)
Return the only vertex adjacent to the vertex according to the provided direction and edge label.
|
<V extends com.tinkerpop.blueprints.Vertex> |
getVertex(com.tinkerpop.blueprints.Direction direction,
String label,
BiFunction<com.tinkerpop.blueprints.Vertex,G,V> mappingFunc)
Return the only vertex adjacent to the vertex according to the provided direction and edge label.
|
Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(com.tinkerpop.blueprints.Direction direction,
String... labels) |
<V extends com.tinkerpop.blueprints.Vertex> |
getVertices(com.tinkerpop.blueprints.Direction direction,
String[] labels,
BiFunction<com.tinkerpop.blueprints.Vertex,G,V> mappingFunc)
Return the vertices adjacent to the vertex according to the provided direction and edge labels.
|
IdVertexQuery<?,G> |
query() |
void |
remove() |
String |
toString() |
equals, getId, getProperty, getPropertyKeys, hashCode, removeProperty, setProperty
getBaseElement
public IdVertex(com.tinkerpop.blueprints.Vertex baseVertex, G graph)
IdVertex
.baseVertex
- the base vertexgraph
- the graph that owns this vertexpublic void remove()
remove
in interface com.tinkerpop.blueprints.Element
@Nonnull public Optional<com.tinkerpop.blueprints.Edge> getEdge(com.tinkerpop.blueprints.Direction direction, String label)
direction
- the direction of the edge to retrievelabel
- the label of the edge to retrievegetEdges(Direction, String...)
@Nonnull public Optional<com.tinkerpop.blueprints.Vertex> getVertex(com.tinkerpop.blueprints.Direction direction, String label)
direction
- the direction of the edge of the adjacent vertexlabel
- the label of the edge of the adjacent vertexgetVertices(Direction, String...)
@Nonnull public Iterable<com.tinkerpop.blueprints.Edge> getEdges(com.tinkerpop.blueprints.Direction direction, String... labels)
getEdges
in interface com.tinkerpop.blueprints.Vertex
@Nonnull public Iterable<com.tinkerpop.blueprints.Vertex> getVertices(com.tinkerpop.blueprints.Direction direction, String... labels)
getVertices
in interface com.tinkerpop.blueprints.Vertex
@Nonnull public IdVertexQuery<?,G> query()
query
in interface com.tinkerpop.blueprints.Vertex
@Nonnull public com.tinkerpop.blueprints.Edge addEdge(String label, com.tinkerpop.blueprints.Vertex vertex)
addEdge
in interface com.tinkerpop.blueprints.Vertex
@Nonnull public <E extends com.tinkerpop.blueprints.Edge> Optional<E> getEdge(com.tinkerpop.blueprints.Direction direction, String label, BiFunction<com.tinkerpop.blueprints.Edge,G,E> mappingFunc)
E
- the type of the edge after mappingdirection
- the direction of the edge to retrievelabel
- the label of the edge to retrievemappingFunc
- the function to create a new dedicated edge from anotherMoreIterables.onlyElement(Iterable)
,
getEdges(Direction, String...)
@Nonnull public <V extends com.tinkerpop.blueprints.Vertex> Optional<V> getVertex(com.tinkerpop.blueprints.Direction direction, String label, BiFunction<com.tinkerpop.blueprints.Vertex,G,V> mappingFunc)
V
- the type of the vertex after mappingdirection
- the direction of the edge of the adjacent vertexlabel
- the label of the edge of the adjacent vertexmappingFunc
- the function to create a new dedicated vertex from anotherMoreIterables.onlyElement(Iterable)
,
getVertices(Direction, String...)
@Nonnull public <E extends com.tinkerpop.blueprints.Edge> Iterable<E> getEdges(com.tinkerpop.blueprints.Direction direction, String[] labels, BiFunction<com.tinkerpop.blueprints.Edge,G,E> mappingFunc)
E
- the type of the edge after mappingdirection
- the direction of the edges to retrievelabels
- the labels of the edges to retrievemappingFunc
- the function to create a new dedicated edge from anothergetEdges(Direction, String...)
@Nonnull public <V extends com.tinkerpop.blueprints.Vertex> Iterable<V> getVertices(com.tinkerpop.blueprints.Direction direction, String[] labels, BiFunction<com.tinkerpop.blueprints.Vertex,G,V> mappingFunc)
V
- the type of the vertex after mappingdirection
- the direction of the edges of the adjacent verticeslabels
- the labels of the edges of the adjacent verticesmappingFunc
- the function to create a new dedicated vertex from anothergetVertices(Direction, String...)
@Nonnull public <E extends com.tinkerpop.blueprints.Edge> E addEdge(String label, com.tinkerpop.blueprints.Vertex vertex, BiFunction<com.tinkerpop.blueprints.Edge,G,E> mappingFunc)
E
- the type of the edge after mappinglabel
- the label of the edgevertex
- the vertex to connect to with an incoming edgemappingFunc
- the function to create a new dedicated edge from anotheraddEdge(String, Vertex)
Copyright © 2013–2019 Atlanmod. All rights reserved.