FileSet destination = new FileSet(dsg.getLocation(), Names.indexNode2Id) ;
BlockMgr blkMgrNodes = BlockMgrFactory.create(destination, Names.bptExtTree, SystemTDB.BlockSize, readCacheSize, writeCacheSize) ;
BlockMgr blkMgrRecords = BlockMgrFactory.create(destination, Names.bptExtRecords, SystemTDB.BlockSize, readCacheSize, writeCacheSize) ;
Iterator<Record> iter2 = Iter.iter(sdb03.iterator()).map(transformPair2Record) ;
BPlusTree bpt2 = BPlusTreeRewriter.packIntoBPlusTree(iter2, bptParams, recordFactory, blkMgrNodes, blkMgrRecords) ;
bpt2.sync() ;
ProgressLogger.print ( log, monitor03 ) ;
} finally {
sdb03.close() ;
sdb03 = null ;