Created
April 19, 2013 09:22
-
-
Save dkuppitz/5419174 to your computer and use it in GitHub Desktop.
Create an in-memory Titan Graph with sample data (Graph of Gods)
This file contains hidden or 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
config = new BaseConfiguration() | |
storage = config.subset("storage") | |
storage.setProperty("backend", "inmemory") | |
index = storage.subset("index").subset("search") | |
index.setProperty("backend", "elasticsearch") | |
index.setProperty("local-mode", true) | |
index.setProperty("client-only", false) | |
index.setProperty("directory", "/tmp/titan/es") | |
g = TitanFactory.open(config) | |
GraphOfTheGodsFactory.load(g) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment