h2/src/main/org/h2/mvstore/Page.java
/**
     * Create a new page. The arrays are not cloned.
     *
     * @param map the map
     * @param version the version
     * @param keyCount the number of keys
     * @param keys the keys
     * @param values the values
     * @param childCount the number of children
     * @param children the children
     * @param childrenPages the children pages
     * @param counts the children counts
     * @param totalCount the total number of keys
     * @param sharedFlags which arrays are shared
     * @param memory the memory used in bytes
     * @return the page
     */
Create a new page. The arrays are not cloned.
Create a new page . The arrays are not cloned .
public static Page create(MVMap<?, ?> map, long version,
            int keyCount, Object[] keys, Object[] values,
            int childCount, long[] children, Page[] childrenPages, long[] counts,
            long totalCount, int sharedFlags, int memory) {
        Page p = new Page(map, version);
        p.keyCount = keyCount;
        p.keys = keys;
        p.values = values;
        p.childCount = childCount;
        p.children = children;
        p.childrenPages = childrenPages;
        p.counts = counts;
        p.totalCount = totalCount;
        p.sharedFlags = sharedFlags;
        p.memory = memory == 0 ? p.calculateMemory() : memory;
        MVStore store = map.store;
        if (store != null) {
            store.registerUnsavedPage();
        }
        return p;
    }
public static Page create ( MVMap < ? , ? > map , long version , int keyCount , Object [ ] keys , Object [ ] values , int childCount , long [ ] children , Page [ ] childrenPages , long [ ] counts , long totalCount , int sharedFlags , int memory ) { Page p = new Page ( map , version ) ; p . keyCount = keyCount ; p . keys = keys ; p . values = values ; p . childCount = childCount ; p . children = children ; p . childrenPages = childrenPages ; p . counts = counts ; p . totalCount = totalCount ; p . sharedFlags = sharedFlags ; p . memory = memory == 0 ? p . calculateMemory ( ) : memory ; MVStore store = map . store ; if ( store != null ) { store . registerUnsavedPage ( ) ; } return p ; }
Create a new page.
Create a new page .
// the position is 0