Package com.syncleus.ferma
Interface FramedGraph
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
FramedTxGraph
,WrappedFramedGraph<G>
,WrappedFramedTxGraph<G>
- All Known Implementing Classes:
DelegatingFramedGraph
public interface FramedGraph extends AutoCloseable
The primary class for framing your blueprints graphs.
-
Method Summary
Modifier and Type Method Description TEdge
addFramedEdge(VertexFrame source, VertexFrame destination, String label)
Add a edge to the graph using a frame type ofTEdge
.<T> T
addFramedEdge(VertexFrame source, VertexFrame destination, String label, ClassInitializer<T> initializer, Object... keyValues)
Add a edge to the graph<T> T
addFramedEdge(VertexFrame source, VertexFrame destination, String label, Class<T> kind)
Add a edge to the graphTEdge
addFramedEdgeExplicit(VertexFrame source, VertexFrame destination, String label)
Add a edge to the graph using a frame type ofTEdge
.<T> T
addFramedEdgeExplicit(VertexFrame source, VertexFrame destination, String label, ClassInitializer<T> initializer)
Add a edge to the graph This will bypass the default type resolution and use the untyped resolver instead.<T> T
addFramedEdgeExplicit(VertexFrame source, VertexFrame destination, String label, Class<T> kind)
Add a edge to the graph This will bypass the default type resolution and use the untyped resolver instead.TVertex
addFramedVertex()
Add a vertex to the graph using a frame type ofTVertex
.<T> T
addFramedVertex(ClassInitializer<T> initializer, Object... keyValues)
Add a vertex to the graph<T> T
addFramedVertex(Class<T> kind)
Add a vertex to the graph<T> T
addFramedVertex(Class<T> kind, Object... keyValues)
Add a vertex to the graphTVertex
addFramedVertexExplicit()
Add a vertex to the graph using a frame type ofTVertex
.<T> T
addFramedVertexExplicit(ClassInitializer<T> initializer)
Add a vertex to the graph This will bypass the default type resolution and use the untyped resolver instead.<T> T
addFramedVertexExplicit(Class<T> kind)
Add a vertex to the graph This will bypass the default type resolution and use the untyped resolver instead.void
close()
Close the delegate graph.<T> Iterator<? extends T>
frame(Iterator<? extends org.apache.tinkerpop.gremlin.structure.Element> pipeline, Class<T> kind)
<T> T
frameElement(org.apache.tinkerpop.gremlin.structure.Element e, Class<T> kind)
<T> T
frameElementExplicit(org.apache.tinkerpop.gremlin.structure.Element e, Class<T> kind)
<T> Iterator<? extends T>
frameExplicit(Iterator<? extends org.apache.tinkerpop.gremlin.structure.Element> pipeline, Class<T> kind)
<T> T
frameNewElement(org.apache.tinkerpop.gremlin.structure.Element e, ClassInitializer<T> initializer)
<T> T
frameNewElement(org.apache.tinkerpop.gremlin.structure.Element e, Class<T> kind)
<T> T
frameNewElementExplicit(org.apache.tinkerpop.gremlin.structure.Element e, ClassInitializer<T> initializer)
<T> T
frameNewElementExplicit(org.apache.tinkerpop.gremlin.structure.Element e, Class<T> kind)
FrameFactory
getBuilder()
<T> Iterator<? extends T>
getFramedEdges(Class<T> kind)
<T> Iterator<? extends T>
getFramedEdges(String key, Object value, Class<T> kind)
<T> Iterator<? extends T>
getFramedEdgesExplicit(Class<T> kind)
<T> Iterator<? extends T>
getFramedEdgesExplicit(String key, Object value, Class<T> kind)
<T> T
getFramedVertex(Class<T> kind, Object id)
<T> T
getFramedVertexExplicit(Class<T> kind, Object id)
<T> Iterator<? extends T>
getFramedVertices(Class<T> kind)
<T> Iterator<? extends T>
getFramedVertices(String key, Object value, Class<T> kind)
<T> Iterator<? extends T>
getFramedVerticesExplicit(Class<T> kind)
<T> Iterator<? extends T>
getFramedVerticesExplicit(String key, Object value, Class<T> kind)
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource
getRawTraversal()
TypeResolver
getTypeResolver()
<T extends Traversable<?, ?>>
Ttraverse(Function<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource,org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<?,?>> traverser)
WrappedTransaction
tx()
-
Method Details
-
getTypeResolver
TypeResolver getTypeResolver() -
getBuilder
FrameFactory getBuilder() -
close
Close the delegate graph.- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
- Whenever an IO problem prevents the stream from closing.
-
addFramedVertex
Add a vertex to the graph- Type Parameters:
T
- The type used to frame the element.- Parameters:
initializer
- the initializer for the frame which defines its type and may initialize propertieskeyValues
- the recommended object identifier- Returns:
- The framed vertex.
-
addFramedVertex
Add a vertex to the graph- Type Parameters:
T
- The type used to frame the element.- Parameters:
kind
- The kind of the frame.keyValues
- the recommended object identifier- Returns:
- The framed vertex.
-
addFramedVertex
Add a vertex to the graph- Type Parameters:
T
- The type used to frame the element.- Parameters:
kind
- The kind of the frame.- Returns:
- The framed vertex.
-
addFramedVertexExplicit
Add a vertex to the graph 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.- Type Parameters:
T
- The type used to frame the element.- Parameters:
initializer
- the initializer for the frame which defines its type and may initialize properties- Returns:
- The framed vertex.
-
addFramedVertexExplicit
Add a vertex to the graph 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.- Type Parameters:
T
- The type used to frame the element.- Parameters:
kind
- The kind of the frame.- Returns:
- The framed vertex.
-
addFramedVertex
TVertex addFramedVertex()Add a vertex to the graph using a frame type ofTVertex
.- Returns:
- The framed vertex.
-
addFramedVertexExplicit
TVertex addFramedVertexExplicit()Add a vertex to the graph using a frame type ofTVertex
. 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.- Returns:
- The framed vertex.
-
addFramedEdge
<T> T addFramedEdge(VertexFrame source, VertexFrame destination, String label, ClassInitializer<T> initializer, Object... keyValues)Add a edge to the graph- Type Parameters:
T
- The type used to frame the element.- Parameters:
source
- the source vertexdestination
- the destination vertexlabel
- the label.initializer
- the initializer for the frame which defines its type and may initialize propertieskeyValues
- the recommended object identifier- Returns:
- The framed edge.
-
addFramedEdge
Add a edge to the graph- Type Parameters:
T
- The type used to frame the element.- Parameters:
source
- The source vertexdestination
- the destination vertexlabel
- the label.kind
- The kind of the frame.- Returns:
- The framed edge.
-
addFramedEdgeExplicit
<T> T addFramedEdgeExplicit(VertexFrame source, VertexFrame destination, String label, ClassInitializer<T> initializer)Add a edge to the graph 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.- Type Parameters:
T
- The type used to frame the element.- Parameters:
source
- The source vertexdestination
- the destination vertexlabel
- the label.initializer
- the initializer for the frame which defines its type and may initialize properties- Returns:
- The framed edge.
-
addFramedEdgeExplicit
<T> T addFramedEdgeExplicit(VertexFrame source, VertexFrame destination, String label, Class<T> kind)Add a edge to the graph 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.- Type Parameters:
T
- The type used to frame the element.- Parameters:
source
- The source vertexdestination
- the destination vertexlabel
- the label.kind
- The kind of the frame.- Returns:
- The framed edge.
-
addFramedEdge
Add a edge to the graph using a frame type ofTEdge
.- Parameters:
source
- The source vertexdestination
- the destination vertexlabel
- the label.- Returns:
- The framed edge.
-
addFramedEdgeExplicit
Add a edge to the graph using a frame type ofTEdge
. 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.- Parameters:
source
- The source vertexdestination
- the destination vertexlabel
- the label.- Returns:
- The framed edge.
-
traverse
<T extends Traversable<?, ?>> T traverse(Function<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource,org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<?,?>> traverser) -
getRawTraversal
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource getRawTraversal() -
getFramedVertex
-
getFramedVertexExplicit
-
getFramedVertices
-
getFramedVertices
-
getFramedVerticesExplicit
-
getFramedVerticesExplicit
-
getFramedEdges
-
getFramedEdges
-
getFramedEdgesExplicit
-
getFramedEdgesExplicit
-
frame
-
frameNewElement
<T> T frameNewElement(org.apache.tinkerpop.gremlin.structure.Element e, ClassInitializer<T> initializer) -
frameNewElement
-
frameElement
-
frameNewElementExplicit
<T> T frameNewElementExplicit(org.apache.tinkerpop.gremlin.structure.Element e, ClassInitializer<T> initializer) -
frameNewElementExplicit
-
frameElementExplicit
-
frameExplicit
-
tx
WrappedTransaction tx()
-