public class EntityGraph extends Object implements com.tinkerpop.blueprints.Graph
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityGraph.EdgeEntityXform
A config function to turn an
Entity into an EntityEdge |
static class |
EntityGraph.EdgeToVertexIndexXform
This config function will pull the vertex index from the correct side of given the edge based on the given
direction and will structure the result as an index to be used to query the entity store.
|
static class |
EntityGraph.EntityFilterPredicate<T extends com.tinkerpop.blueprints.Element> |
static class |
EntityGraph.EntityIndexXform
A config function to turn an
EntityElement into an EntityIndex so that it can be directly
applied to the EntityStore. |
static class |
EntityGraph.VertexEntityXform
A config function to turn an
Entity into an EntityVertex. |
| Modifier and Type | Field and Description |
|---|---|
protected Auths |
auths |
protected Set<String> |
edgeTypes |
protected GraphStore |
graphStore |
protected Set<String> |
vertexTypes |
| Constructor and Description |
|---|
EntityGraph(GraphStore graphStore,
Set<String> vertexTypes,
Set<String> edgeTypes,
Auths auths)
The graph is restriced only to the given vertex types and edge types.
|
| Modifier and Type | Method and Description |
|---|---|
com.tinkerpop.blueprints.Edge |
addEdge(Object o,
com.tinkerpop.blueprints.Vertex vertex,
com.tinkerpop.blueprints.Vertex vertex2,
String s)
Adding edges is not allowed because this store is read-only
|
com.tinkerpop.blueprints.Vertex |
addVertex(Object o)
Adding a vertex is not allowed because the graph store is read-only
|
com.tinkerpop.blueprints.Edge |
getEdge(Object entityIndex)
Retrieves the edge at the specified
EntityIndex. |
org.calrissian.mango.collect.CloseableIterable<com.tinkerpop.blueprints.Edge> |
getEdges()
Returns all edges with the entity edge types configured on this instance
|
org.calrissian.mango.collect.CloseableIterable<com.tinkerpop.blueprints.Edge> |
getEdges(String key,
Object value)
Returns edges with the given property key and value.
|
com.tinkerpop.blueprints.Features |
getFeatures() |
com.tinkerpop.blueprints.Vertex |
getVertex(Object entityIndex)
Retrieves the vertex with the given
EntityIndex |
org.calrissian.mango.collect.CloseableIterable<com.tinkerpop.blueprints.Vertex> |
getVertices()
Retrieves all the vertices with the given vertex types configured on the current instance
|
org.calrissian.mango.collect.CloseableIterable<com.tinkerpop.blueprints.Vertex> |
getVertices(String key,
Object value)
Retrieves the vertices with the given property key and value
|
com.tinkerpop.blueprints.GraphQuery |
query()
Returns a graph query builder object
|
void |
removeEdge(com.tinkerpop.blueprints.Edge edge)
The store is read-only so edges cannot be removed.
|
void |
removeVertex(com.tinkerpop.blueprints.Vertex vertex)
Removing a vertex is not allowed because the graph is read-only
|
void |
shutdown() |
String |
toString() |
protected GraphStore graphStore
protected Auths auths
public EntityGraph(GraphStore graphStore, Set<String> vertexTypes, Set<String> edgeTypes, Auths auths)
public com.tinkerpop.blueprints.Features getFeatures()
getFeatures in interface com.tinkerpop.blueprints.Graphpublic com.tinkerpop.blueprints.Vertex addVertex(Object o)
addVertex in interface com.tinkerpop.blueprints.Graphpublic com.tinkerpop.blueprints.Vertex getVertex(Object entityIndex)
EntityIndexgetVertex in interface com.tinkerpop.blueprints.Graphpublic void removeVertex(com.tinkerpop.blueprints.Vertex vertex)
removeVertex in interface com.tinkerpop.blueprints.Graphpublic org.calrissian.mango.collect.CloseableIterable<com.tinkerpop.blueprints.Vertex> getVertices()
getVertices in interface com.tinkerpop.blueprints.Graphpublic org.calrissian.mango.collect.CloseableIterable<com.tinkerpop.blueprints.Vertex> getVertices(String key, Object value)
getVertices in interface com.tinkerpop.blueprints.Graphpublic com.tinkerpop.blueprints.Edge addEdge(Object o, com.tinkerpop.blueprints.Vertex vertex, com.tinkerpop.blueprints.Vertex vertex2, String s)
addEdge in interface com.tinkerpop.blueprints.Graphpublic com.tinkerpop.blueprints.Edge getEdge(Object entityIndex)
EntityIndex.getEdge in interface com.tinkerpop.blueprints.GraphentityIndex - The entity index object (type and id) for which to find the edgepublic void removeEdge(com.tinkerpop.blueprints.Edge edge)
removeEdge in interface com.tinkerpop.blueprints.Graphpublic org.calrissian.mango.collect.CloseableIterable<com.tinkerpop.blueprints.Edge> getEdges()
getEdges in interface com.tinkerpop.blueprints.Graphpublic org.calrissian.mango.collect.CloseableIterable<com.tinkerpop.blueprints.Edge> getEdges(String key, Object value)
getEdges in interface com.tinkerpop.blueprints.Graphpublic com.tinkerpop.blueprints.GraphQuery query()
query in interface com.tinkerpop.blueprints.Graphpublic void shutdown()
shutdown in interface com.tinkerpop.blueprints.GraphCopyright © 2014 Calrissian. All Rights Reserved.