src/applications/h2/src/main/org/h2/mvstore/db/TransactionStore.java
/**
     * Open the map with the given id.
     *
     * @param mapId the id
     * @return the map
     */
Open the map with the given id.
@param mapId the id
@return the map
Open the map with the given id . @param mapId the id @return the map
synchronized MVMap<Object, VersionedValue> openMap(int mapId) {
        MVMap<Object, VersionedValue> map = maps.get(mapId);
        if (map != null) {
            return map;
        }
        String mapName = store.getMapName(mapId);
        if (mapName == null) {
            return null;
        }
        VersionedValueType vt = new VersionedValueType(dataType);
        MVMap.Builder<Object, VersionedValue> mapBuilder =
                new MVMap.Builder<Object, VersionedValue>().
                keyType(dataType).valueType(vt);
        map = store.openMap(mapName, mapBuilder);
        maps.put(mapId, map);
        return map;
    }
synchronized MVMap < Object , VersionedValue > openMap ( int mapId ) { MVMap < Object , VersionedValue > map = maps . get ( mapId ) ; if ( map != null ) { return map ; } String mapName = store . getMapName ( mapId ) ; if ( mapName == null ) { return null ; } VersionedValueType vt = new VersionedValueType ( dataType ) ; MVMap . Builder < Object , VersionedValue > mapBuilder = new MVMap . Builder < Object , VersionedValue > ( ) . keyType ( dataType ) . valueType ( vt ) ; map = store . openMap ( mapName , mapBuilder ) ; maps . put ( mapId , map ) ; return map ; }
Open the map with the given id.
Open the map with the given id .
// the map was removed later on