Database is a class that initializes several static
variables used by the database system (the catalog, the buffer pool,
and the log files, in particular.)
Compares the field number of t specified in the constructor to the
operand field specified in the constructor using the operator specific
in the constructor.
HeapFileEncoder reads a comma delimited text file or accepts
an array of tuples and converts it to
pages of binary data in the appropriate format for simpledb heap pages
Pages are padded out to a specified length, and written consecutive in a
data file.
The format of the log file is as follows:
The first long integer of the file represents the offset of the
last written checkpoint, or -1 if there are no checkpoints
All additional data in the log consists of log records.
Recover the database system by ensuring that the updates of
committed transactions are installed and that the
updates of uncommitted transactions are not installed.
SeqScan is an implementation of a sequential scan access method that reads
each tuple of a table in no particular order (e.g., as they are laid out on
disk).
Return a representation of this page id object as a collection of
integers (used for logging)
This class MUST have a constructor that accepts n integer parameters,
where n is the number of integers returned in the array from serialize.