final class TinkerGraphDriver extends GremlinDriver
The driver used to connect to an in-memory TinkerGraph instance.
- Alphabetic
- By Inheritance
- TinkerGraphDriver
- GremlinDriver
- IDriver
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TinkerGraphDriver()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def NODES_IN_SCHEMA: Seq[String]
- Attributes
- protected
- Definition Classes
- IDriver
- def addConfig(key: String, value: String): TinkerGraphDriver
Add or update a org.apache.commons.configuration.BaseConfiguration key-value pair.
Add or update a org.apache.commons.configuration.BaseConfiguration key-value pair.
- key
the key of the property.
- value
the value of the property.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def astLinker(): Unit
Create REF edges from TYPE nodes to TYPE_DECL, EVAL_TYPE edges from nodes of various types to TYPE, REF edges from METHOD_REFs to METHOD, INHERITS_FROM nodes from TYPE_DECL nodes to TYPE, and ALIAS_OF edges from TYPE_DECL nodes to TYPE.
- def buildInterproceduralEdges(): Unit
Runs linkers for AST node relations and calls.
Runs linkers for AST node relations and calls.
- Definition Classes
- IDriver
- def bulkTx(dg: AppliedDiff): Unit
Executes all changes contained within the given overflowdb.BatchedUpdate.AppliedDiff as a (or set of) bulk transaction(s).
Executes all changes contained within the given overflowdb.BatchedUpdate.AppliedDiff as a (or set of) bulk transaction(s).
- Definition Classes
- GremlinDriver → IDriver
- def bulkTx(dg: AppliedDiffGraph): Unit
Executes all changes contained within the given io.shiftleft.passes.AppliedDiffGraph as a (or set of) bulk transaction(s).
Executes all changes contained within the given io.shiftleft.passes.AppliedDiffGraph as a (or set of) bulk transaction(s).
- Definition Classes
- GremlinDriver → IDriver
- def clear(): Unit
Removes all entries from the database.
Removes all entries from the database.
- Definition Classes
- GremlinDriver → IDriver
- def clearMaps(): Unit
- Attributes
- protected
- Definition Classes
- IDriver
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def close(): Unit
- Definition Classes
- GremlinDriver → AutoCloseable
- val config: BaseConfiguration
- Attributes
- protected
- Definition Classes
- GremlinDriver
- def deserializeLists(properties: Map[String, Any]): Map[String, Any]
Where former list properties were serialized as strings, they will be deserialized as Seq.
Where former list properties were serialized as strings, they will be deserialized as Seq.
- properties
the serialized property map.
- returns
a property map where comma-separated strings are made Seq objects.
- Attributes
- protected
- Definition Classes
- IDriver
- def dynamicCallLinker(): Unit
Links all dynamic dispatch calls to their methods.
Links all dynamic dispatch calls to their methods.
- Definition Classes
- GremlinDriver → IDriver
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exists(srcId: Long, dstId: Long, edge: String): Boolean
Determines if there exists an edge between two nodes.
Determines if there exists an edge between two nodes. Edges are assumed to be directional.
- Definition Classes
- GremlinDriver → IDriver
- def exists(nodeId: Long): Boolean
Determines if the node exists in the database.
Determines if the node exists in the database.
- Definition Classes
- GremlinDriver → IDriver
- def exportGraph(filePath: String): Unit
Export the currently connected graph to the given path.
Export the currently connected graph to the given path. The extension of the file should be included and may only be .xml, .json, or .kryo. If a graph file already exists it will be overwritten.
- filePath
the file path to export to.
- def g(): GraphTraversalSource
Gives a graph traversal source if available or generates a re-usable one if none is available yet.
Gives a graph traversal source if available or generates a re-usable one if none is available yet.
- returns
a Gremlin graph traversal source.
- Attributes
- protected
- Definition Classes
- GremlinDriver
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- val graph: Graph
- Attributes
- protected
- Definition Classes
- GremlinDriver
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def id(node: AbstractNode, dg: AppliedDiffGraph): Any
Provides the assigned ID for the given node using the given diff graph.
Provides the assigned ID for the given node using the given diff graph.
- Definition Classes
- GremlinDriver → IDriver
- def idInterval(lower: Long, upper: Long): Set[Long]
Returns all the taken IDs between the two boundaries (inclusive).
Returns all the taken IDs between the two boundaries (inclusive).
- Definition Classes
- GremlinDriver → IDriver
- def importGraph(filePath: String): Unit
Imports a .xml, .json, or .kryo TinkerGraph file into the currently connected graph.
Imports a .xml, .json, or .kryo TinkerGraph file into the currently connected graph.
- filePath
the file path to import from.
- def initMaps(): Unit
- Attributes
- protected
- Definition Classes
- IDriver
- def isConnected: Boolean
Will return true if the database is connected, false if otherwise.
Will return true if the database is connected, false if otherwise.
- Definition Classes
- GremlinDriver → IDriver
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def linkAstNodes(srcLabels: List[String], edgeType: String, dstNodeMap: Map[String, Any], dstFullNameKey: String, dstNodeType: String): Unit
Links nodes by their source label and destination full name key to their destination nodes by the specified edge type using the destination node map as the lookup table.
Links nodes by their source label and destination full name key to their destination nodes by the specified edge type using the destination node map as the lookup table. Source labels are assumed to be non-empty.
- Definition Classes
- GremlinDriver → IDriver
- val logger: Logger
- Attributes
- protected
- Definition Classes
- TinkerGraphDriver → GremlinDriver
- val methodFullNameToNode: Map[String, Any]
- Attributes
- protected
- Definition Classes
- IDriver
- val namespaceNameToNode: Map[String, Any]
- Attributes
- protected
- Definition Classes
- IDriver
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def propertyFromNodes(nodeType: String, keys: String*): List[Map[String, Any]]
Obtains properties from the specified node type and key(s).
Obtains properties from the specified node type and key(s). By default will return the ID property as one of the keys as "id".
- Definition Classes
- GremlinDriver → IDriver
- def removeSourceFiles(filenames: String*): Unit
Given filenames, will remove related TYPE, TYPE_DECL, METHOD (with AST children), and NAMESPACE_BLOCK.
Given filenames, will remove related TYPE, TYPE_DECL, METHOD (with AST children), and NAMESPACE_BLOCK.
- Definition Classes
- GremlinDriver → IDriver
- def serializeLists(properties: Map[String, Any]): Map[String, Any]
To handle the case where databases don't support lists, we simply serialize these as a comma-separated string.
To handle the case where databases don't support lists, we simply serialize these as a comma-separated string.
- properties
the property map.
- returns
a property map where lists are serialized as strings.
- Attributes
- protected
- Definition Classes
- IDriver
- def staticCallLinker(): Unit
Links all static dispatch calls to their methods.
Links all static dispatch calls to their methods.
- Definition Classes
- GremlinDriver → IDriver
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- var traversalSource: Option[GraphTraversalSource]
- Attributes
- protected
- Definition Classes
- GremlinDriver
- val typeDeclFullNameToNode: Map[String, Any]
- Attributes
- protected
- Definition Classes
- IDriver
- val typeFullNameToNode: Map[String, Any]
- Attributes
- protected
- Definition Classes
- IDriver
- def typedNodeId(nodeId: Long): Any
- Attributes
- protected
- Definition Classes
- GremlinDriver
- Annotations
- @inline()
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated