Class GraphGremlinBase
- java.lang.Object
-
- org.odpi.openmetadata.openconnectors.governancedaemonconnectors.openlineageconnectors.janusconnector.factory.GraphGremlinBase
-
public class GraphGremlinBase extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSourcegprotected org.apache.tinkerpop.gremlin.structure.Graphgraphprotected Map<String,Object>propertiesprotected booleansupportingTransactions
-
Constructor Summary
Constructors Constructor Description GraphGremlinBase(ConnectionProperties connectionProperties)Constructs a graph using the given properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseGraph()Closes the graph instance.protected voidcreateSchema()Creates the graph schema.voiddropGraph()Drops the graph instance.booleanisSupportingTransactions()Returns transaction support property of the specific graph instance.org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSourceopenGraph()Opens the graph instance.voidupdateElements()Makes an update to the existing graph structure.
-
-
-
Constructor Detail
-
GraphGremlinBase
public GraphGremlinBase(ConnectionProperties connectionProperties)
Constructs a graph using the given properties.- Parameters:
connectionProperties- the properties coming from the request
-
-
Method Detail
-
openGraph
public org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource openGraph()
Opens the graph instance. If the graph instance does not exist, a new graph instance will be initialized.
-
dropGraph
public void dropGraph() throws ExceptionDrops the graph instance. The default implementation does nothing.- Throws:
Exception
-
createSchema
protected void createSchema()
Creates the graph schema. The default implementation does nothing.
-
updateElements
public void updateElements()
Makes an update to the existing graph structure. Does not create any new vertices or edges.
-
isSupportingTransactions
public boolean isSupportingTransactions()
Returns transaction support property of the specific graph instance.
-
-