private Map<byte[], byte[]> multiGetAsMap(List<byte[]> keys) throws RocksDBException {
        final List<byte[]> rawList = this.db.multiGetAsList(keys);
        final Map<byte[], byte[]> resultMap = Maps.newHashMapWithExpectedSize(rawList.size());
        int index = 0;
        for (final byte[] value : rawList) {
            resultMap.put(keys.get(index), value);
            index++;
        }
        return resultMap;
    }
Local KV store based on RocksDB

@author dennis
@author jiachun.fjc
jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/storage/RocksRawKVStore.java