TinkerGraphDriver

class TinkerGraphDriver: GremlinDriver

The driver used to connect to an in-memory TinkerGraph instance.

Methods

connect

fun connect(): TinkerGraphDriver

Connects to the graph database with the given configuration.

ReturnValue

Name Description
TinkerGraphDriver

addConfig

fun addConfig(key: String, value: String): (key: String, value: String)

Add or update a BaseConfiguration key-value pair.

Parameters

Name Description
key: String

the key of the property.

value: String

the value of the property.

ReturnValue

Name Description
(key: String, value: String)

exportGraph

fun exportGraph(filePath: String)

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.

Parameters

Name Description
filePath: String

the file path to export to.

ReturnValue

Name Description
Unit

importGraph

fun importGraph(filePath: String)

Imports a .xml, .json, or .kryo TinkerGraph file into the currently connected graph.

Parameters

Name Description
filePath: String

the file path to import from.

ReturnValue

Name Description
Unit