h2/src/main/org/h2/mvstore/Chunk.java
/**
     * Build a block from the given string.
     *
     * @param s the string
     * @return the block
     */
Build a block from the given string.
@param s the string
@return the block
Build a block from the given string . @param s the string @return the block
public static Chunk fromString(String s) {
        HashMap<String, String> map = DataUtils.parseMap(s);
        int id = Integer.parseInt(map.get("id"));
        Chunk c = new Chunk(id);
        c.start = Long.parseLong(map.get("start"));
        c.length = Integer.parseInt(map.get("length"));
        c.pageCount = Integer.parseInt(map.get("pageCount"));
        c.pageCountLive = Integer.parseInt(map.get("pageCountLive"));
        c.maxLength = Long.parseLong(map.get("maxLength"));
        c.maxLengthLive = Long.parseLong(map.get("maxLengthLive"));
        c.metaRootPos = Long.parseLong(map.get("metaRoot"));
        c.time = Long.parseLong(map.get("time"));
        c.version = Long.parseLong(map.get("version"));
        return c;
    }
public static Chunk fromString ( String s ) { HashMap < String , String > map = DataUtils . parseMap ( s ) ; int id = Integer . parseInt ( map . get ( "id" ) ) ; Chunk c = new Chunk ( id ) ; c . start = Long . parseLong ( map . get ( "start" ) ) ; c . length = Integer . parseInt ( map . get ( "length" ) ) ; c . pageCount = Integer . parseInt ( map . get ( "pageCount" ) ) ; c . pageCountLive = Integer . parseInt ( map . get ( "pageCountLive" ) ) ; c . maxLength = Long . parseLong ( map . get ( "maxLength" ) ) ; c . maxLengthLive = Long . parseLong ( map . get ( "maxLengthLive" ) ) ; c . metaRootPos = Long . parseLong ( map . get ( "metaRoot" ) ) ; c . time = Long . parseLong ( map . get ( "time" ) ) ; c . version = Long . parseLong ( map . get ( "version" ) ) ; return c ; }
Build a block from the given string.
Build a block from the given string .