Search in sources :

Example 6 with CacheTransaction

use of org.janusgraph.diskstorage.keycolumnvalue.cache.CacheTransaction in project janusgraph by JanusGraph.

the class MultiWriteKeyColumnValueStoreTest method open.

public void open() throws BackendException {
    manager = openStorageManager();
    tx = new CacheTransaction(manager.beginTransaction(getTxConfig()), manager, bufferSize, Duration.ofMillis(100), true);
    store1 = new NoKCVSCache(manager.openDatabase(storeName1));
    store2 = new NoKCVSCache(manager.openDatabase(storeName2));
}
Also used : NoKCVSCache(org.janusgraph.diskstorage.keycolumnvalue.cache.NoKCVSCache) CacheTransaction(org.janusgraph.diskstorage.keycolumnvalue.cache.CacheTransaction)

Aggregations

CacheTransaction (org.janusgraph.diskstorage.keycolumnvalue.cache.CacheTransaction)6 StaticBuffer (org.janusgraph.diskstorage.StaticBuffer)4 ArrayList (java.util.ArrayList)3 KeySliceQuery (org.janusgraph.diskstorage.keycolumnvalue.KeySliceQuery)3 Instant (java.time.Instant)2 EntryList (org.janusgraph.diskstorage.EntryList)2 SliceQuery (org.janusgraph.diskstorage.keycolumnvalue.SliceQuery)2 ImmutableMap (com.google.common.collect.ImmutableMap)1 Entry (org.janusgraph.diskstorage.Entry)1 StoreTransaction (org.janusgraph.diskstorage.keycolumnvalue.StoreTransaction)1 NoKCVSCache (org.janusgraph.diskstorage.keycolumnvalue.cache.NoKCVSCache)1 StaticArrayEntry (org.janusgraph.diskstorage.util.StaticArrayEntry)1 Test (org.junit.Test)1