h2/src/main/org/h2/mvstore/Page.java
/**
     * Remove this page and all child pages.
     */
Remove this page and all child pages.
Remove this page and all child pages .
void removeAllRecursive() {
        if (children != null) {
            for (int i = 0, size = childCount; i < size; i++) {
                Page p = childrenPages[i];
                if (p != null) {
                    p.removeAllRecursive();
                } else {
                    long c = children[i];
                    int type = DataUtils.getPageType(c);
                    if (type == DataUtils.PAGE_TYPE_LEAF) {
                        map.removePage(c);
                    } else {
                        map.readPage(c).removeAllRecursive();
                    }
                }
            }
        }
        removePage();
    }
void removeAllRecursive ( ) { if ( children != null ) { for ( int i = 0 , size = childCount ; i < size ; i ++ ) { Page p = childrenPages [ i ] ; if ( p != null ) { p . removeAllRecursive ( ) ; } else { long c = children [ i ] ; int type = DataUtils . getPageType ( c ) ; if ( type == DataUtils . PAGE_TYPE_LEAF ) { map . removePage ( c ) ; } else { map . readPage ( c ) . removeAllRecursive ( ) ; } } } } removePage ( ) ; }
Remove this page and all child pages.
Remove this page and all child pages .