

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


This original assignment is designed by University of Wisconsin-Madison. We use Minibase in this revised assignment. Minibase is a small relational DBMS, structured into several layers. In this assignment, you will implement the Heap file layer. You will be given the documentation for the lower layers (Buffer Manager and Disk Space Manager), as well as the documents for managing records on a Heap file page. This assignment has two parts. You have to do the following:
You should begin by reading the chapter on Disks and Files, to get an overview of the HF layer and buffer management. In addition, HTML documentation is available for Minibase.
There are three main packages with which you should familiarize yourself: heap, bufmgr, diskmgr. Note that part of the heap package contains implementation for HFPage. The java documentation of HFPage is provided to you. A Heap file is seen as a collection of records. Internally, records are stored on a collection of HFPage objects.
Like assignment 6 Buffer Manager, You have to import the heapAssign.jar from the folder “lib” to work with your code and the test. Again, the java documentation for package bufmgr, diskmgr and heap are included.
Note that you DO NOT have to throw the same exceptions as documented for the heap package. However, for testing purpose, we DO ask you to name one of your exceptions InvalidUpdateException to signal any illegal operations on the record. In other error situations, you should throw exceptions as you see fit following the error protocol introduced in the Buffer Manager Assignment.
You should turn in copies of your code together with copies of the output produced by running the tests. Also, you should email the code packages to Jason before the due the day. The assignment is due on April 28th before class. The solution will be made public after that time, and solutions turned in after that time will not receive any credit. So be sure to turn in whatever you have, even if it is not working fully, at that time.