9 ms·
Anyone can implement new Titan storage adapters by implementing a few interface classes. Look at the Titan/BDB storage adapter for a simple example: https://g
by espeed 14y ago
Anyone can implement new Titan storage adapters by implementing a few interface classes.
Look at the Titan/BDB storage adapter for a simple example:
https://github.com/thinkaurelius/titan/tree/master/titan-berkeleyje/src/main/java/com/thinkaurelius/titan/diskstorage/berkeleyje https://github.com/thinkaurelius/titan/tree/master/titan-ber...
It implements the KeyValueStore interfaces (there are other interfaces for different types of DBs, such as KeyValueColumnStore, etc):
https://github.com/thinkaurelius/titan/blob/master/titan-core/src/main/java/com/thinkaurelius/titan/diskstorage/keycolumnvalue/keyvalue/KeyValueStoreManager.java https://github.com/thinkaurelius/titan/blob/master/titan-cor...
https://github.com/thinkaurelius/titan/blob/master/titan-core/src/main/java/com/thinkaurelius/titan/diskstorage/keycolumnvalue/keyvalue/KeyValueStore.java https://github.com/thinkaurelius/titan/blob/master/titan-cor...
https://github.com/thinkaurelius/titan/blob/master/titan-core/src/main/java/com/thinkaurelius/titan/diskstorage/common/AbstractStoreTransaction.java https://github.com/thinkaurelius/titan/blob/master/titan-cor...
If you are interested in implementing a Titan storage adapter for a new backend datastore and you have questions, you can discuss it in the Aurelius Graphs group:
https://groups.google.com/forum/?fromgroups#!forum/aureliusgraphs https://groups.google.com/forum/?fromgroups#!forum/aureliusg...