public class FramedGraph<T extends com.tinkerpop.blueprints.Graph> extends Object implements com.tinkerpop.blueprints.Graph, com.tinkerpop.blueprints.util.wrappers.WrapperGraph<T>
| Modifier | Constructor and Description |
|---|---|
|
FramedGraph() |
|
FramedGraph(T baseGraph)
Deprecated.
Use
FramedGraphFactory. |
protected |
FramedGraph(T baseGraph,
FramedGraphConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
com.tinkerpop.blueprints.Edge |
addEdge(Object id,
com.tinkerpop.blueprints.Vertex outVertex,
com.tinkerpop.blueprints.Vertex inVertex,
String label) |
<F> F |
addEdge(Object id,
com.tinkerpop.blueprints.Vertex outVertex,
com.tinkerpop.blueprints.Vertex inVertex,
String label,
Class<F> kind) |
<F> F |
addEdge(Object id,
com.tinkerpop.blueprints.Vertex outVertex,
com.tinkerpop.blueprints.Vertex inVertex,
String label,
com.tinkerpop.blueprints.Direction direction,
Class<F> kind)
Deprecated.
|
com.tinkerpop.blueprints.Vertex |
addVertex(Object id) |
<F> F |
addVertex(Object id,
Class<F> kind)
Add a vertex to the underlying graph and return it as a framed vertex.
|
<F> F |
frame(com.tinkerpop.blueprints.Edge edge,
Class<F> kind)
A helper method for framing an edge.
|
<F> F |
frame(com.tinkerpop.blueprints.Edge edge,
com.tinkerpop.blueprints.Direction direction,
Class<F> kind)
Deprecated.
|
<F> F |
frame(com.tinkerpop.blueprints.Vertex vertex,
Class<F> kind)
A helper method for framing a vertex.
|
<F> Iterable<F> |
frameEdges(Iterable<com.tinkerpop.blueprints.Edge> edges,
Class<F> kind)
A helper method for framing an iterable of edges.
|
<F> Iterable<F> |
frameEdges(Iterable<com.tinkerpop.blueprints.Edge> edges,
com.tinkerpop.blueprints.Direction direction,
Class<F> kind)
Deprecated.
|
<F> Iterable<F> |
frameVertices(Iterable<com.tinkerpop.blueprints.Vertex> vertices,
Class<F> kind)
A helper method for framing an iterable of vertices.
|
AnnotationHandler<?> |
getAnnotationHandler(Class<? extends Annotation> annotationType)
Deprecated.
Use
Modules via FramedGraphFactory. |
Collection<AnnotationHandler<? extends Annotation>> |
getAnnotationHandlers()
Deprecated.
Use
Modules via FramedGraphFactory. |
T |
getBaseGraph() |
com.tinkerpop.blueprints.Edge |
getEdge(Object id) |
<F> F |
getEdge(Object id,
Class<F> kind)
Frame an edge according to a particular kind of annotated interface.
|
<F> F |
getEdge(Object id,
com.tinkerpop.blueprints.Direction direction,
Class<F> kind)
|
Iterable<com.tinkerpop.blueprints.Edge> |
getEdges() |
Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(String key,
Object value) |
<F> Iterable<F> |
getEdges(String key,
Object value,
Class<F> kind)
Frame edges according to a particular kind of annotated interface.
|
<F> Iterable<F> |
getEdges(String key,
Object value,
com.tinkerpop.blueprints.Direction direction,
Class<F> kind)
Deprecated.
|
com.tinkerpop.blueprints.Features |
getFeatures() |
com.tinkerpop.blueprints.Vertex |
getVertex(Object id) |
<F> F |
getVertex(Object id,
Class<F> kind)
Frame a vertex according to a particular kind of annotated interface.
|
Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices() |
Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(String key,
Object value) |
<F> Iterable<F> |
getVertices(String key,
Object value,
Class<F> kind)
Frame vertices according to a particular kind of annotated interface.
|
boolean |
hasAnnotationHandler(Class<? extends Annotation> annotationType)
Deprecated.
Use
Modules via FramedGraphFactory. |
FramedGraphQuery |
query()
Generate a query object that can be used to fine tune which edges/vertices are retrieved from the graph.
|
void |
registerAnnotationHandler(AnnotationHandler<? extends Annotation> handler)
Deprecated.
Use
Modules via FramedGraphFactory. |
void |
registerFrameInitializer(FrameInitializer frameInitializer)
Deprecated.
Use
Modules via FramedGraphFactory. |
void |
removeEdge(com.tinkerpop.blueprints.Edge edge) |
void |
removeVertex(com.tinkerpop.blueprints.Vertex vertex) |
void |
shutdown() |
String |
toString() |
void |
unregisterAnnotationHandler(Class<? extends Annotation> annotationType)
Deprecated.
Use
Modules via FramedGraphFactory. |
protected final T extends com.tinkerpop.blueprints.Graph baseGraph
public FramedGraph()
protected FramedGraph(T baseGraph, FramedGraphConfiguration config)
baseGraph - The original graph being framed.config - The configuration for the framed graph.config.getConfiguredGraph() - The graph being framed after module configuration.public FramedGraph(T baseGraph)
FramedGraphFactory.baseGraph - the graph whose elements to framepublic <F> F frame(com.tinkerpop.blueprints.Vertex vertex,
Class<F> kind)
VertexFrame to allow access to the underlying elementF - the default type of the annotated interfacevertex - the vertex to framekind - the default annotated interface to frame the vertex aspublic <F> F frame(com.tinkerpop.blueprints.Edge edge,
com.tinkerpop.blueprints.Direction direction,
Class<F> kind)
EdgeFrame to allow access to the underlying elementF - the default type of the annotated interfaceedge - the edge to framedirection - the direction of the edgeskind - the default annotated interface to frame the edges aspublic <F> F frame(com.tinkerpop.blueprints.Edge edge,
Class<F> kind)
EdgeFrame to allow access to the underlying element.F - the default type of the annotated interfaceedge - the edge to framekind - the default annotated interface to frame the edges aspublic <F> Iterable<F> frameVertices(Iterable<com.tinkerpop.blueprints.Vertex> vertices, Class<F> kind)
F - the default type of the annotated interfacevertices - the vertices to framekind - the default annotated interface to frame the vertices aspublic <F> Iterable<F> frameEdges(Iterable<com.tinkerpop.blueprints.Edge> edges, com.tinkerpop.blueprints.Direction direction, Class<F> kind)
F - the default type of the annotated interfaceedges - the edges to framedirection - the direction of the edgeskind - the default annotated interface to frame the edges aspublic <F> Iterable<F> frameEdges(Iterable<com.tinkerpop.blueprints.Edge> edges, Class<F> kind)
F - the default type of the annotated interfaceedges - the edges to framedirection - the direction of the edgeskind - the default annotated interface to frame the edges aspublic com.tinkerpop.blueprints.Vertex getVertex(Object id)
getVertex in interface com.tinkerpop.blueprints.Graphpublic <F> F getVertex(Object id, Class<F> kind)
F - the default type of the annotated interfaceid - the id of the vertexkind - the default annotated interface to frame the vertex aspublic com.tinkerpop.blueprints.Vertex addVertex(Object id)
addVertex in interface com.tinkerpop.blueprints.Graphpublic <F> F addVertex(Object id, Class<F> kind)
F - the default type of the annotated interfaceid - the id of the newly created vertexkind - the default annotated interface to frame the vertex aspublic com.tinkerpop.blueprints.Edge getEdge(Object id)
getEdge in interface com.tinkerpop.blueprints.Graphpublic <F> F getEdge(Object id, com.tinkerpop.blueprints.Direction direction, Class<F> kind)
F - the default type of the annotated interfaceid - the id of the edgedirection - the direction of the edgekind - the default annotated interface to frame the edge aspublic <F> F getEdge(Object id, Class<F> kind)
F - the default type of the annotated interfaceid - the id of the edgedirection - the direction of the edgekind - the default annotated interface to frame the edge aspublic com.tinkerpop.blueprints.Edge addEdge(Object id, com.tinkerpop.blueprints.Vertex outVertex, com.tinkerpop.blueprints.Vertex inVertex, String label)
addEdge in interface com.tinkerpop.blueprints.Graphpublic <F> F addEdge(Object id, com.tinkerpop.blueprints.Vertex outVertex, com.tinkerpop.blueprints.Vertex inVertex, String label, com.tinkerpop.blueprints.Direction direction, Class<F> kind)
addEdge(Object, Vertex, Vertex, String, Class),
in combination with InVertex and OutVertex.F - the default type of the annotated interfaceid - the id of the newly created edgeoutVertex - the outgoing vertexinVertex - the incoming vertexlabel - the label of the edgedirection - the direction of the edgekind - the default annotated interface to frame the edge aspublic <F> F addEdge(Object id, com.tinkerpop.blueprints.Vertex outVertex, com.tinkerpop.blueprints.Vertex inVertex, String label, Class<F> kind)
public void removeVertex(com.tinkerpop.blueprints.Vertex vertex)
removeVertex in interface com.tinkerpop.blueprints.Graphpublic void removeEdge(com.tinkerpop.blueprints.Edge edge)
removeEdge in interface com.tinkerpop.blueprints.Graphpublic Iterable<com.tinkerpop.blueprints.Vertex> getVertices()
getVertices in interface com.tinkerpop.blueprints.Graphpublic Iterable<com.tinkerpop.blueprints.Vertex> getVertices(String key, Object value)
getVertices in interface com.tinkerpop.blueprints.Graphpublic <F> Iterable<F> getVertices(String key, Object value, Class<F> kind)
F - the default type of the annotated interfacekey - the key of the vertices to getvalue - the value of the vertices to getkind - the default annotated interface to frame the vertices aspublic Iterable<com.tinkerpop.blueprints.Edge> getEdges()
getEdges in interface com.tinkerpop.blueprints.Graphpublic Iterable<com.tinkerpop.blueprints.Edge> getEdges(String key, Object value)
getEdges in interface com.tinkerpop.blueprints.Graphpublic <F> Iterable<F> getEdges(String key, Object value, com.tinkerpop.blueprints.Direction direction, Class<F> kind)
F - the default type of the annotated interfacekey - the key of the edges to getvalue - the value of the edges to getdirection - the direction of the edgeskind - the default annotated interface to frame the edges aspublic <F> Iterable<F> getEdges(String key, Object value, Class<F> kind)
F - the default type of the annotated interfacekey - the key of the edges to getvalue - the value of the edges to getdirection - the direction of the edgeskind - the default annotated interface to frame the edges aspublic com.tinkerpop.blueprints.Features getFeatures()
getFeatures in interface com.tinkerpop.blueprints.Graphpublic void shutdown()
shutdown in interface com.tinkerpop.blueprints.Graphpublic T getBaseGraph()
getBaseGraph in interface com.tinkerpop.blueprints.util.wrappers.WrapperGraph<T extends com.tinkerpop.blueprints.Graph>public void registerAnnotationHandler(AnnotationHandler<? extends Annotation> handler)
handler - the annotation handlerpublic AnnotationHandler<?> getAnnotationHandler(Class<? extends Annotation> annotationType)
annotationType - the type of annotation handled by the annotation handlerpublic boolean hasAnnotationHandler(Class<? extends Annotation> annotationType)
annotationType - the type of annotation handled by the annotation handlerpublic void unregisterAnnotationHandler(Class<? extends Annotation> annotationType)
annotationType - the type of the annotation handler to removepublic Collection<AnnotationHandler<? extends Annotation>> getAnnotationHandlers()
public void registerFrameInitializer(FrameInitializer frameInitializer)
FrameInitializer that will be called whenever a
new vertex or edge is added to the graph. The initializer may mutate the
vertex (or graph) before returning the framed element to the user.frameInitializer - the frame initializerpublic FramedGraphQuery query()
query in interface com.tinkerpop.blueprints.GraphCopyright © 2011-2016 JBoss by Red Hat. All Rights Reserved.