final PageLeafImpl copy(long sequence)
  {
    BlockLeaf []blocks = new BlockLeaf[_blocks.length];
    
    for (int i = 0; i < blocks.length; i++) {
      blocks[i] = _blocks[i].copy();
    }
    
    PageLeafImpl page = new PageLeafImpl(getId(), getNextId(), sequence,
                                         _table, _firstKey, _lastKey,
                                         blocks);
    
    if (_stub != null) {
      _stub.copyToCompact(page);
    }
    
    return page;
  }
final PageLeafImpl copy ( long sequence ) { BlockLeaf [ ] blocks = new BlockLeaf [ _blocks . length ] ; for ( int i = 0 ; i < blocks . length ; i ++ ) { blocks [ i ] = _blocks [ i ] . copy ( ) ; } PageLeafImpl page = new PageLeafImpl ( getId ( ) , getNextId ( ) , sequence , _table , _firstKey , _lastKey , blocks ) ; if ( _stub != null ) { _stub . copyToCompact ( page ) ; } return page ; }
Copy the block and reuse the buffer for compact() when the old block
is clean.