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;
}
Aggregations