Created
January 22, 2016 20:38
-
-
Save zeryx/86bee8c03d9efe2b2c16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait ConnectionInMemory { | |
var graph: TitanGraph = null | |
def connect() = { | |
import org.apache.commons.configuration.BaseConfiguration | |
val conf = new BaseConfiguration() | |
conf.setProperty("storage.backend","inmemory") | |
import com.thinkaurelius.titan.core.TitanFactory | |
graph = TitanFactory.open(conf) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment