Search in sources :

Example 1 with MemoryRawKVStore

use of io.dingodb.store.row.storage.MemoryRawKVStore in project dingo by dingodb.

the class StoreEngine method initMemoryDB.

private boolean initMemoryDB(final StoreEngineOptions opts) {
    MemoryDBOptions memoryOpts = opts.getMemoryDBOptions();
    if (memoryOpts == null) {
        memoryOpts = new MemoryDBOptions();
        opts.setMemoryDBOptions(memoryOpts);
    }
    final MemoryRawKVStore memoryRawKVStore = new MemoryRawKVStore();
    if (!memoryRawKVStore.init(memoryOpts)) {
        LOG.error("Fail to init [MemoryRawKVStore].");
        return false;
    }
    this.rawKVStore = memoryRawKVStore;
    return true;
}
Also used : MemoryRawKVStore(io.dingodb.store.row.storage.MemoryRawKVStore)

Aggregations

MemoryRawKVStore (io.dingodb.store.row.storage.MemoryRawKVStore)1