public class OracleWrapperGraph extends Object implements com.tinkerpop.blueprints.Graph, com.tinkerpop.blueprints.TransactionalGraph
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_DT_EMPTY |
static int |
TYPE_DT_FLOAT |
static int |
TYPE_DT_INTEGER |
static int |
TYPE_DT_STRING |
| 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)
This method adds an edge to the graph instance.
|
com.tinkerpop.blueprints.Vertex |
addVertex(Object id)
This method adds a Vertex instance to the graph
|
void |
commit() |
static byte[] |
escape(String s) |
com.tinkerpop.blueprints.Edge |
getEdge(Object id)
Return the edge referenced by the object identifier
|
String |
getEdgeFileName() |
Iterable<com.tinkerpop.blueprints.Edge> |
getEdges()
Return an iterable to all the edges in the graph.
|
Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(String key, Object value)
Return an iterable to all the edges in the graph that have a particular key/value property.
|
com.tinkerpop.blueprints.Features |
getFeatures()
Get the particular features of the graph implementation.
|
String |
getGraphName() |
static OracleWrapperGraph |
getInstance(String szGraphName, String szVertexFileName, String szEdgeFileName)
Returns an instance of OracleWrapperGraph using the Oracle connection and graph name provided.
|
com.tinkerpop.blueprints.Vertex |
getVertex(Object id)
Return the vertex referenced by the object identifier.
|
String |
getVertexFileName() |
Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices()
Return an iterable to all the vertices in the graph.
|
Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(String key, Object value)
Return an iterable to all the vertices in the graph that have a particular key/value property.
|
void |
load()
A function to load graph from flat files to Oracle DB
|
com.tinkerpop.blueprints.GraphQuery |
query() |
void |
removeEdge(com.tinkerpop.blueprints.Edge edge)
Remove the prDVIDed edge from the graph.
|
void |
removeVertex(com.tinkerpop.blueprints.Vertex vertex)
Remove the prDVIDed vertex from the graph.
|
void |
rollback() |
void |
shutdown()
A shutdown function is required to properly close the graph.
|
void |
startTransaction()
Start a transaction.
|
void |
stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion)
Stop the current transaction.
|
public static final int TYPE_DT_EMPTY
public static final int TYPE_DT_FLOAT
public static final int TYPE_DT_INTEGER
public static final int TYPE_DT_STRING
public 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 com.tinkerpop.blueprints.Vertex addVertex(Object id)
addVertex in interface com.tinkerpop.blueprints.Graphpublic void commit()
commit in interface com.tinkerpop.blueprints.TransactionalGraphpublic static byte[] escape(String s)
public com.tinkerpop.blueprints.Edge getEdge(Object id)
getEdge in interface com.tinkerpop.blueprints.Graphpublic String getEdgeFileName()
public 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 com.tinkerpop.blueprints.Features getFeatures()
getFeatures in interface com.tinkerpop.blueprints.Graphpublic String getGraphName()
public static OracleWrapperGraph getInstance(String szGraphName, String szVertexFileName, String szEdgeFileName) throws IOException
IOExceptionpublic com.tinkerpop.blueprints.Vertex getVertex(Object id)
getVertex in interface com.tinkerpop.blueprints.Graphpublic String getVertexFileName()
public 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 void load()
public com.tinkerpop.blueprints.GraphQuery query()
query in interface com.tinkerpop.blueprints.Graphpublic void removeEdge(com.tinkerpop.blueprints.Edge edge)
removeEdge in interface com.tinkerpop.blueprints.Graphpublic void removeVertex(com.tinkerpop.blueprints.Vertex vertex)
removeVertex in interface com.tinkerpop.blueprints.Graphpublic void rollback()
rollback in interface com.tinkerpop.blueprints.TransactionalGraphpublic void shutdown()
shutdown in interface com.tinkerpop.blueprints.Graphshutdown in interface com.tinkerpop.blueprints.TransactionalGraphpublic void startTransaction()
public void stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion)
stopTransaction in interface com.tinkerpop.blueprints.TransactionalGraphCopyright © 2017 Oracle and/or its affiliates. All Rights Reserved.