/** * Close the RecordManager and flush everything on disk */ public void close() throws IOException { beginTransaction(); // Close all the managed B-trees for ( BTree<Object, Object> tree : managedBtrees.values() ) { tree.close(); } // Close the management B-trees copiedPageBtree.close(); btreeOfBtrees.close(); managedBtrees.clear(); // Write the data fileChannel.force( true ); // And close the channel fileChannel.close(); commit(); }
valueArray[0] = valueBtree.browse().next().getKey(); nbArrayElems = 1; valueBtree.close(); valueBtree = null;