/** * Open a copy of the map in read-only mode. * * @return the opened map */ protected MVMap<K, V> openReadOnly() { MVMap<K, V> m = new MVMap<K, V>(keyType, valueType); m.readOnly = true; HashMap<String, String> config = New.hashMap(); config.put("id", String.valueOf(id)); config.put("createVersion", String.valueOf(createVersion)); m.init(store, config); m.root = root; return m; }