ElementFrame
, VertexFrame
TVertex
public abstract class AbstractVertexFrame extends AbstractElementFrame implements VertexFrame
Constructor | Description |
---|---|
AbstractVertexFrame() |
Modifier and Type | Method | Description |
---|---|---|
TEdge |
addFramedEdge(String label,
VertexFrame inVertex) |
Add an edge using a frame type of
TEdge . |
<T> T |
addFramedEdge(String label,
VertexFrame inVertex,
ClassInitializer<T> initializer) |
Add an edge using the supplied frame type.
|
<T> T |
addFramedEdge(String label,
VertexFrame inVertex,
Class<T> kind) |
Add an edge using the supplied frame type.
|
TEdge |
addFramedEdgeExplicit(String label,
VertexFrame inVertex) |
Add an edge using a frame type of
TEdge . |
<T> T |
addFramedEdgeExplicit(String label,
VertexFrame inVertex,
ClassInitializer<T> initializer) |
Add an edge using the supplied frame type.
|
<T> T |
addFramedEdgeExplicit(String label,
VertexFrame inVertex,
Class<T> kind) |
Add an edge using the supplied frame type.
|
org.apache.tinkerpop.gremlin.structure.Vertex |
getElement() |
|
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<? extends org.apache.tinkerpop.gremlin.structure.Vertex,? extends org.apache.tinkerpop.gremlin.structure.Vertex> |
getRawTraversal() |
|
void |
linkBoth(VertexFrame vertex,
String... labels) |
Create edges from the supplied vertex to the framed vertex and vice versa
with the supplied labels
|
void |
linkIn(VertexFrame vertex,
String... labels) |
Create edges from the supplied vertex to the framed vertex with the
supplied labels
|
void |
linkOut(VertexFrame vertex,
String... labels) |
Create edges from the framed vertex to the supplied vertex with the
supplied labels
|
<T> T |
reframe(Class<T> kind) |
Reframe this element as a different type of frame.
|
<T> T |
reframeExplicit(Class<T> kind) |
Reframe this element as a different type of frame.
|
<K> K |
setLinkBoth(ClassInitializer<K> initializer,
String... labels) |
Remove all edges with the labels and then add edges to/from a new
vertex.
|
void |
setLinkBoth(VertexFrame vertex,
String... labels) |
Remove all edges with the labels and then add a edges from the
supplied vertex and to the supplied vertex.
|
<K> K |
setLinkBoth(Class<K> kind,
String... labels) |
Remove all edges with the labels and then add edges to/from a new
vertex.
|
<K> K |
setLinkBothExplicit(ClassInitializer<K> initializer,
String... labels) |
Remove all edges with the labels and then add edges to/from a new
vertex.
|
<K> K |
setLinkBothExplicit(Class<K> kind,
String... labels) |
Remove all edges with the labels and then add edges to/from a new
vertex.
|
<K> K |
setLinkIn(ClassInitializer<K> initializer,
String... labels) |
Remove all in edges with the labels and then add a single edge from a
new vertex.
|
void |
setLinkIn(VertexFrame vertex,
String... labels) |
Remove all in edges with the labels and then add a single edge from the
supplied vertex.
|
<K> K |
setLinkIn(Class<K> kind,
String... labels) |
Remove all in edges with the labels and then add a single edge from a
new vertex.
|
<K> K |
setLinkInExplicit(ClassInitializer<K> initializer,
String... labels) |
Remove all in edges with the labels and then add a single edge from a
new vertex.
|
<K> K |
setLinkInExplicit(Class<K> kind,
String... labels) |
Remove all in edges with the labels and then add a single edge from a
new vertex.
|
<K> K |
setLinkOut(ClassInitializer<K> initializer,
String... labels) |
Remove all out edges with the labels and then add a single edge to a new
vertex.
|
void |
setLinkOut(VertexFrame vertex,
String... labels) |
Remove all out edges with the labels and then add a single edge to the
supplied vertex.
|
<K> K |
setLinkOut(Class<K> kind,
String... labels) |
Remove all out edges with the labels and then add a single edge to a new
vertex.
|
<K> K |
setLinkOutExplicit(ClassInitializer<K> initializer,
String... labels) |
Remove all out edges with the labels and then add a single edge to a new
vertex.
|
<K> K |
setLinkOutExplicit(Class<K> kind,
String... labels) |
Remove all out edges with the labels and then add a single edge to a new
vertex.
|
com.google.gson.JsonObject |
toJson() |
Output the vertex as JSON.
|
String |
toString() |
|
<T extends Traversable<?,?>> |
traverse(Function<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<org.apache.tinkerpop.gremlin.structure.Vertex,org.apache.tinkerpop.gremlin.structure.Vertex>,org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<?,?>> traverser) |
|
void |
unlinkBoth(VertexFrame vertex,
String... labels) |
Remove all edges to/from the supplied vertex with the supplied labels.
|
void |
unlinkIn(VertexFrame vertex,
String... labels) |
Remove all in edges to the supplied vertex with the supplied labels.
|
void |
unlinkOut(VertexFrame vertex,
String... labels) |
Remove all out edges to the supplied vertex with the supplied labels.
|
equals, getGraph, getId, getProperty, getProperty, getPropertyKeys, getTypeResolution, hashCode, remove, removeTypeResolution, setElement, setProperty, setTypeResolution
getGraph, getId, getProperty, getProperty, getPropertyKeys, getTypeResolution, remove, removeTypeResolution, setElement, setProperty, setTypeResolution
public org.apache.tinkerpop.gremlin.structure.Vertex getElement()
getElement
in interface ElementFrame
getElement
in interface VertexFrame
getElement
in class AbstractElementFrame
public <T> T addFramedEdge(String label, VertexFrame inVertex, ClassInitializer<T> initializer)
VertexFrame
addFramedEdge
in interface VertexFrame
T
- The type for the framed edge.label
- The label for the edgeinVertex
- The vertex to link to.initializer
- the initializer for the frame which defines its type and may initialize propertiespublic <T> T addFramedEdge(String label, VertexFrame inVertex, Class<T> kind)
VertexFrame
addFramedEdge
in interface VertexFrame
T
- The type for the framed edge.label
- The label for the edgeinVertex
- The vertex to link to.kind
- The kind of frame.public <T> T addFramedEdgeExplicit(String label, VertexFrame inVertex, ClassInitializer<T> initializer)
VertexFrame
addFramedEdgeExplicit
in interface VertexFrame
T
- The type for the framed edge.label
- The label for the edgeinVertex
- The vertex to link to.initializer
- the initializer for the frame which defines its type and may initialize propertiespublic <T> T addFramedEdgeExplicit(String label, VertexFrame inVertex, Class<T> kind)
VertexFrame
addFramedEdgeExplicit
in interface VertexFrame
T
- The type for the framed edge.label
- The label for the edgeinVertex
- The vertex to link to.kind
- The kind of frame.public TEdge addFramedEdge(String label, VertexFrame inVertex)
VertexFrame
TEdge
.addFramedEdge
in interface VertexFrame
label
- The label for the edgeinVertex
- The vertex to link to.public TEdge addFramedEdgeExplicit(String label, VertexFrame inVertex)
VertexFrame
TEdge
.
This will bypass the default type resolution and use the untyped resolver
instead. This method is useful for speeding up a look up when type resolution
isn't required.addFramedEdgeExplicit
in interface VertexFrame
label
- The label for the edgeinVertex
- The vertex to link to.public void linkOut(VertexFrame vertex, String... labels)
VertexFrame
linkOut
in interface VertexFrame
vertex
- The vertex to link to.labels
- The labels for the edges.public void linkIn(VertexFrame vertex, String... labels)
VertexFrame
linkIn
in interface VertexFrame
vertex
- The vertex to link from.labels
- The labels for the edges.public void linkBoth(VertexFrame vertex, String... labels)
VertexFrame
linkBoth
in interface VertexFrame
vertex
- The vertex to link to and from.labels
- The labels for the edges.public void unlinkOut(VertexFrame vertex, String... labels)
VertexFrame
unlinkOut
in interface VertexFrame
vertex
- The vertex to removed the edges to.labels
- The labels of the edges.public void unlinkIn(VertexFrame vertex, String... labels)
VertexFrame
unlinkIn
in interface VertexFrame
vertex
- The vertex to removed the edges from.labels
- The labels of the edges.public void unlinkBoth(VertexFrame vertex, String... labels)
VertexFrame
unlinkBoth
in interface VertexFrame
vertex
- The vertex to removed the edges to/from.labels
- The labels of the edges.public void setLinkOut(VertexFrame vertex, String... labels)
VertexFrame
setLinkOut
in interface VertexFrame
vertex
- the vertex to link to.labels
- The labels of the edges.public void setLinkIn(VertexFrame vertex, String... labels)
VertexFrame
setLinkIn
in interface VertexFrame
vertex
- the vertex to link from.labels
- The labels of the edges.public void setLinkBoth(VertexFrame vertex, String... labels)
VertexFrame
setLinkBoth
in interface VertexFrame
vertex
- the vertex to link from.labels
- The labels of the edges.public <K> K setLinkOut(ClassInitializer<K> initializer, String... labels)
VertexFrame
setLinkOut
in interface VertexFrame
K
- The type used to frame the edge.initializer
- the initializer for the frame which defines its type and may initialize propertieslabels
- The labels of the edges.public <K> K setLinkOut(Class<K> kind, String... labels)
VertexFrame
setLinkOut
in interface VertexFrame
K
- The type used to frame the edge.kind
- The kind of frame.labels
- The labels of the edges.public <K> K setLinkOutExplicit(ClassInitializer<K> initializer, String... labels)
VertexFrame
setLinkOutExplicit
in interface VertexFrame
K
- The type used to frame the edge.initializer
- the initializer for the frame which defines its type and may initialize propertieslabels
- The labels of the edges.public <K> K setLinkOutExplicit(Class<K> kind, String... labels)
VertexFrame
setLinkOutExplicit
in interface VertexFrame
K
- The type used to frame the edge.kind
- The kind of frame.labels
- The labels of the edges.public <K> K setLinkIn(ClassInitializer<K> initializer, String... labels)
VertexFrame
setLinkIn
in interface VertexFrame
K
- The type used to frame the edge.initializer
- the initializer for the frame which defines its type and may initialize propertieslabels
- The labels of the edges.public <K> K setLinkIn(Class<K> kind, String... labels)
VertexFrame
setLinkIn
in interface VertexFrame
K
- The type used to frame the edge.kind
- The kind of frame.labels
- The labels of the edges.public <K> K setLinkInExplicit(ClassInitializer<K> initializer, String... labels)
VertexFrame
setLinkInExplicit
in interface VertexFrame
K
- The type used to frame the edge.initializer
- the initializer for the frame which defines its type and may initialize propertieslabels
- The labels of the edges.public <K> K setLinkInExplicit(Class<K> kind, String... labels)
VertexFrame
setLinkInExplicit
in interface VertexFrame
K
- The type used to frame the edge.kind
- The kind of frame.labels
- The labels of the edges.public <K> K setLinkBoth(ClassInitializer<K> initializer, String... labels)
VertexFrame
setLinkBoth
in interface VertexFrame
K
- The type used to frame the edge.initializer
- the initializer for the frame which defines its type and may initialize propertieslabels
- The labels of the edges.public <K> K setLinkBoth(Class<K> kind, String... labels)
VertexFrame
setLinkBoth
in interface VertexFrame
K
- The type used to frame the edge.kind
- The kind of frame.labels
- The labels of the edges.public <K> K setLinkBothExplicit(ClassInitializer<K> initializer, String... labels)
VertexFrame
setLinkBothExplicit
in interface VertexFrame
K
- The type used to frame the edge.initializer
- the initializer for the frame which defines its type and may initialize propertieslabels
- The labels of the edges.public <K> K setLinkBothExplicit(Class<K> kind, String... labels)
VertexFrame
setLinkBothExplicit
in interface VertexFrame
K
- The type used to frame the edge.kind
- The kind of frame.labels
- The labels of the edges.public com.google.gson.JsonObject toJson()
VertexFrame
toJson
in interface VertexFrame
public String toString()
toString
in class AbstractElementFrame
public <T> T reframe(Class<T> kind)
VertexFrame
reframe
in interface VertexFrame
T
- The type used to frame the element.kind
- The new kind of frame.public <T> T reframeExplicit(Class<T> kind)
VertexFrame
reframeExplicit
in interface VertexFrame
T
- The type used to frame the element.kind
- The new kind of frame.public <T extends Traversable<?,?>> T traverse(Function<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<org.apache.tinkerpop.gremlin.structure.Vertex,org.apache.tinkerpop.gremlin.structure.Vertex>,org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<?,?>> traverser)
traverse
in interface VertexFrame
public org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<? extends org.apache.tinkerpop.gremlin.structure.Vertex,? extends org.apache.tinkerpop.gremlin.structure.Vertex> getRawTraversal()
getRawTraversal
in interface VertexFrame
Copyright © 2018 Syncleus. All rights reserved.