h2/src/main/org/h2/mvstore/MVStore.java
/**
     * Open an old, stored version of a map.
     *
     * @param version the version
     * @param mapId the map id
     * @param template the template map
     * @return the read-only map
     */
Open an old, stored version of a map.
@param version the version
@param mapId the map id
@param template the template map
@return the read-only map
Open an old stored version of a map . @param version the version @param mapId the map id @param template the template map @return the read - only map
@SuppressWarnings("unchecked")
    <T extends MVMap<?, ?>> T openMapVersion(long version, int mapId,
            MVMap<?, ?> template) {
        MVMap<String, String> oldMeta = getMetaMap(version);
        String r = oldMeta.get("root." + mapId);
        long rootPos = DataUtils.parseLong(r, 0);
        MVMap<?, ?> m = template.openReadOnly();
        m.setRootPos(rootPos, version);
        return (T) m;
    }
@ SuppressWarnings ( "unchecked" ) < T extends MVMap < ? , ? > > T openMapVersion ( long version , int mapId , MVMap < ? , ? > template ) { MVMap < String , String > oldMeta = getMetaMap ( version ) ; String r = oldMeta . get ( "root." + mapId ) ; long rootPos = DataUtils . parseLong ( r , 0 ) ; MVMap < ? , ? > m = template . openReadOnly ( ) ; m . setRootPos ( rootPos , version ) ; return ( T ) m ; }
Open an old, stored version of a map.
Open an old stored version of a map .