use of com.thinkaurelius.titan.diskstorage.keycolumnvalue.inmemory.InMemoryStoreManager in project titan by thinkaurelius.
the class KCVSCacheTest method setup.
@Before
public void setup() throws Exception {
storeManager = new InMemoryStoreManager();
store = new CounterKCVS(storeManager.openDatabase(STORE_NAME));
cache = getCache(store);
}
use of com.thinkaurelius.titan.diskstorage.keycolumnvalue.inmemory.InMemoryStoreManager in project titan by thinkaurelius.
the class KCVSConfigTest method getConfig.
@Override
public WriteConfiguration getConfig() {
final KeyColumnValueStoreManager manager = new InMemoryStoreManager(Configuration.EMPTY);
ModifiableConfiguration config = GraphDatabaseConfiguration.buildGraphConfiguration();
config.set(GraphDatabaseConfiguration.TIMESTAMP_PROVIDER, TimestampProviders.MICRO);
try {
return new KCVSConfiguration(new BackendOperation.TransactionalProvider() {
@Override
public StoreTransaction openTx() throws BackendException {
return manager.beginTransaction(StandardBaseTransactionConfig.of(TimestampProviders.MICRO, manager.getFeatures().getKeyConsistentTxConfig()));
}
@Override
public void close() throws BackendException {
manager.close();
}
}, config, manager.openDatabase("titan"), "general");
} catch (BackendException e) {
throw new RuntimeException(e);
}
}
Aggregations