h2/src/main/org/h2/mvstore/MVMap.java
/**
     * Open a copy of the map in read-only mode.
     *
     * @return the opened map
     */
Open a copy of the map in read-only mode.
@return the opened map
Open a copy of the map in read - only mode . @return the opened map
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;
    }
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 ; }
Open a copy of the map in read-only mode.
Open a copy of the map in read - only mode .