- Database - Class in simpledb
 
- 
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.)
 
- Database() - Constructor for class simpledb.Database
 
-  
 
- DbException - Exception in simpledb
 
- 
Generic database exception class
 
- DbException(String) - Constructor for exception simpledb.DbException
 
-  
 
- DbFile - Interface in simpledb
 
- 
The interface for database files on disk.
 
- DbFileIterator - Interface in simpledb
 
- 
DbFileIterator is the iterator interface that all SimpleDB Dbfile should
 implement.
 
- DbIterator - Interface in simpledb
 
- 
DbIterator is the iterator interface that all SimpleDB operators should
 implement.
 
- DeadlockException - Exception in simpledb
 
- 
Exception that is thrown when a deadlock occurs.
 
- DeadlockException() - Constructor for exception simpledb.DeadlockException
 
-  
 
- Debug - Class in simpledb
 
- 
Debug is a utility class that wraps println statements and allows
 more or less command line output to be turned on.
 
- Debug() - Constructor for class simpledb.Debug
 
-  
 
- DEBUG_LEVEL - Static variable in class simpledb.Debug
 
-  
 
- DEFAULT_LEVEL - Static variable in class simpledb.Debug
 
-  
 
- DEFAULT_PAGES - Static variable in class simpledb.BufferPool
 
- 
Default number of pages passed to the constructor.
 
- deleteTuple(TransactionId, Tuple) - Method in class simpledb.BufferPool
 
- 
Remove the specified tuple from the buffer pool.
 
- deleteTuple(TransactionId, Tuple) - Method in interface simpledb.DbFile
 
- 
Removes the specified tuple from the file on behalf of the specified
 transaction.
 
- deleteTuple(TransactionId, Tuple) - Method in class simpledb.HeapFile
 
-  
 
- deleteTuple(Tuple) - Method in class simpledb.HeapPage
 
- 
Delete the specified tuple from the page;  the tuple should be updated to reflect
   that it is no longer stored on any page.
 
- discardPage(PageId) - Method in class simpledb.BufferPool
 
- 
Remove the specific page id from the buffer pool.
 
- getAlias() - Method in class simpledb.SeqScan
 
-  
 
- getBeforeImage() - Method in class simpledb.HeapPage
 
- 
Return a view of this page before it was modified
        -- used by recovery
 
- getBeforeImage() - Method in interface simpledb.Page
 
- 
Provide a representation of this page before any modifications were made
        to it.
 
- getBufferPool() - Static method in class simpledb.Database
 
- 
Return the buffer pool of the static Database instance
 
- getCatalog() - Static method in class simpledb.Database
 
- 
Return the catalog of the static Database instance
 
- getDatabaseFile(int) - Method in class simpledb.Catalog
 
- 
Returns the DbFile that can be used to read the contents of the
 specified table.
 
- getField() - Method in class simpledb.Predicate
 
-  
 
- getField(int) - Method in class simpledb.Tuple
 
-  
 
- getFieldName(int) - Method in class simpledb.TupleDesc
 
- 
Gets the (possibly null) field name of the ith field of this TupleDesc.
 
- getFieldType(int) - Method in class simpledb.TupleDesc
 
- 
Gets the type of the ith field of this TupleDesc.
 
- getFile() - Method in class simpledb.HeapFile
 
- 
Returns the File backing this HeapFile on disk.
 
- getHeaderSize() - Method in class simpledb.HeapPage
 
- 
Computes the number of bytes in the header of a page in a HeapFile with each tuple occupying tupleSize bytes
 
- getHeapTuple(int) - Static method in class simpledb.Utility
 
-  
 
- getHeapTuple(int[]) - Static method in class simpledb.Utility
 
-  
 
- getHeapTuple(int, int) - Static method in class simpledb.Utility
 
-  
 
- getId() - Method in interface simpledb.DbFile
 
- 
Returns a unique ID used to identify this DbFile in the Catalog.
 
- getId() - Method in class simpledb.HeapFile
 
- 
Returns an ID uniquely identifying this HeapFile.
 
- getId() - Method in class simpledb.HeapPage
 
-  
 
- getId() - Method in interface simpledb.Page
 
- 
Return the id of this page.
 
- getId() - Method in class simpledb.TransactionId
 
-  
 
- getLen() - Method in enum simpledb.Type
 
-  
 
- getLogFile() - Static method in class simpledb.Database
 
- 
Return the log file of the static Database instance
 
- getNumEmptySlots() - Method in class simpledb.HeapPage
 
- 
Returns the number of empty slots on this page.
 
- getNumTuples() - Method in class simpledb.HeapPage
 
- 
Retrieve the number of tuples on this page.
 
- getOp() - Method in class simpledb.Predicate
 
-  
 
- getOp(int) - Static method in enum simpledb.Predicate.Op
 
- 
Interface to access operations by integer value for command-line
 convenience.
 
- getOperand() - Method in class simpledb.Predicate
 
-  
 
- getPage(TransactionId, PageId, Permissions) - Method in class simpledb.BufferPool
 
- 
Retrieve the specified page with the associated permissions.
 
- getPageData() - Method in class simpledb.HeapPage
 
- 
Generates a byte array representing the contents of this page.
 
- getPageData() - Method in interface simpledb.Page
 
- 
Generates a byte array representing the contents of this page.
 
- getPageId() - Method in class simpledb.RecordId
 
-  
 
- getPageSize() - Static method in class simpledb.BufferPool
 
-  
 
- getPrimaryKey(int) - Method in class simpledb.Catalog
 
-  
 
- getRecordId() - Method in class simpledb.Tuple
 
-  
 
- getSize() - Method in class simpledb.TupleDesc
 
-  
 
- getStrings(int, String) - Static method in class simpledb.Utility
 
-  
 
- getTableId(String) - Method in class simpledb.Catalog
 
- 
Return the id of the table with a specified name,
 
- getTableId() - Method in class simpledb.HeapPageId
 
-  
 
- getTableId() - Method in interface simpledb.PageId
 
-  
 
- getTableName(int) - Method in class simpledb.Catalog
 
-  
 
- getTableName() - Method in class simpledb.SeqScan
 
-  
 
- getTotalRecords() - Method in class simpledb.LogFile
 
-  
 
- getTuple(int[], int) - Static method in class simpledb.Utility
 
-  
 
- getTupleDesc(int) - Method in class simpledb.Catalog
 
- 
Returns the tuple descriptor (schema) of the specified table
 
- getTupleDesc() - Method in interface simpledb.DbFile
 
- 
Returns the TupleDesc of the table stored in this DbFile.
 
- getTupleDesc() - Method in interface simpledb.DbIterator
 
- 
Returns the TupleDesc associated with this DbIterator.
 
- getTupleDesc() - Method in class simpledb.HeapFile
 
- 
Returns the TupleDesc of the table stored in this DbFile.
 
- getTupleDesc() - Method in class simpledb.SeqScan
 
- 
Returns the TupleDesc with field names from the underlying HeapFile,
 prefixed with the tableAlias string from the constructor.
 
- getTupleDesc() - Method in class simpledb.Tuple
 
-  
 
- getTupleDesc() - Method in class simpledb.TupleIterator
 
-  
 
- getTupleDesc(int, String) - Static method in class simpledb.Utility
 
-  
 
- getTupleDesc(int) - Static method in class simpledb.Utility
 
-  
 
- getType() - Method in interface simpledb.Field
 
- 
 
- getType() - Method in class simpledb.IntField
 
- 
Return the Type of this field.
 
- getType() - Method in class simpledb.StringField
 
-  
 
- getTypes(int) - Static method in class simpledb.Utility
 
-  
 
- getValue() - Method in class simpledb.IntField
 
-  
 
- getValue() - Method in class simpledb.StringField
 
-  
 
- listToString(ArrayList<Integer>) - Static method in class simpledb.Utility
 
-  
 
- loadSchema(String) - Method in class simpledb.Catalog
 
- 
Reads the schema from a file and creates the appropriate tables in the database.
 
- log(int, String, Object...) - Static method in class simpledb.Debug
 
- 
Log message if the log level >= level.
 
- log(String, Object...) - Static method in class simpledb.Debug
 
- 
Logs message at the default log level.
 
- logAbort(TransactionId) - Method in class simpledb.LogFile
 
- 
Write an abort record to the log for the specified tid, force
        the log to disk, and perform a rollback
 
- logCheckpoint() - Method in class simpledb.LogFile
 
- 
Checkpoint the log and write a checkpoint record.
 
- logCommit(TransactionId) - Method in class simpledb.LogFile
 
- 
Write a commit record to disk for the specified tid,
        and force the log to disk.
 
- LogFile - Class in simpledb
 
- 
 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.
 
- LogFile(File) - Constructor for class simpledb.LogFile
 
- 
Constructor.
 
- logFile - Variable in class simpledb.LogFile
 
-  
 
- LOGFILENAME - Static variable in class simpledb.Database
 
-  
 
- logTruncate() - Method in class simpledb.LogFile
 
- 
Truncate any unneeded portion of the log to reduce its space
        consumption
 
- logWrite(TransactionId, Page, Page) - Method in class simpledb.LogFile
 
- 
Write an UPDATE record to disk for the specified tid and page
        (with provided         before and after images.)
 
- logXactionBegin(TransactionId) - Method in class simpledb.LogFile
 
- 
Write a BEGIN record for the specified transaction
 
- LONG_SIZE - Static variable in class simpledb.LogFile
 
-  
 
- raf - Variable in class simpledb.LogFile
 
-  
 
- READ_ONLY - Static variable in class simpledb.Permissions
 
-  
 
- READ_WRITE - Static variable in class simpledb.Permissions
 
-  
 
- readNext() - Method in class simpledb.AbstractDbFileIterator
 
- 
Reads the next tuple from the underlying source.
 
- readNextTuple(DataInputStream, int) - Method in class simpledb.HeapPage
 
- 
Suck up tuples from the source file.
 
- readPage(PageId) - Method in interface simpledb.DbFile
 
- 
Read the specified page from disk.
 
- readPage(PageId) - Method in class simpledb.HeapFile
 
-  
 
- readPageData(RandomAccessFile) - Method in class simpledb.LogFile
 
-  
 
- RecordId - Class in simpledb
 
- 
A RecordId is a reference to a specific tuple on a specific page of a
 specific table.
 
- RecordId(PageId, int) - Constructor for class simpledb.RecordId
 
- 
Creates a new RecordId referring to the specified PageId and tuple
 number.
 
- recover() - Method in class simpledb.LogFile
 
- 
Recover the database system by ensuring that the updates of
        committed transactions are installed and that the
        updates of uncommitted transactions are not installed.
 
- recoveryUndecided - Variable in class simpledb.LogFile
 
-  
 
- releasePage(TransactionId, PageId) - Method in class simpledb.BufferPool
 
- 
Releases the lock on a page.
 
- reset() - Static method in class simpledb.Database
 
-  
 
- reset(int, String) - Method in class simpledb.SeqScan
 
- 
Reset the tableid, and tableAlias of this operator.
 
- resetBufferPool(int) - Static method in class simpledb.Database
 
- 
Method used for testing -- create a new instance of the buffer pool and
 return it
 
- resetPageSize() - Static method in class simpledb.BufferPool
 
-  
 
- resetTupleDesc(TupleDesc) - Method in class simpledb.Tuple
 
- 
reset the TupleDesc of thi tuple
 
- rewind() - Method in interface simpledb.DbFileIterator
 
- 
Resets the iterator to the start.
 
- rewind() - Method in interface simpledb.DbIterator
 
- 
Resets the iterator to the start.
 
- rewind() - Method in class simpledb.SeqScan
 
-  
 
- rewind() - Method in class simpledb.TupleIterator
 
-  
 
- rollback(TransactionId) - Method in class simpledb.LogFile
 
- 
Rollback the specified transaction, setting the state of any
        of pages it updated to their pre-updated state.
 
- tableIdIterator() - Method in class simpledb.Catalog
 
-  
 
- td - Variable in class simpledb.HeapPage
 
-  
 
- td - Variable in class simpledb.TupleIterator
 
-  
 
- TDItem(Type, String) - Constructor for class simpledb.TupleDesc.TDItem
 
-  
 
- tidToFirstLogRecord - Variable in class simpledb.LogFile
 
-  
 
- toString() - Method in interface simpledb.Field
 
-  
 
- toString() - Method in class simpledb.IntField
 
-  
 
- toString() - Method in class simpledb.Permissions
 
-  
 
- toString() - Method in enum simpledb.Predicate.Op
 
-  
 
- toString() - Method in class simpledb.Predicate
 
- 
Returns something useful, like "f = field_id op = op_string operand =
 operand_string
 
- toString() - Method in class simpledb.StringField
 
-  
 
- toString() - Method in class simpledb.Tuple
 
- 
Returns the contents of this Tuple as a string.
 
- toString() - Method in class simpledb.TupleDesc.TDItem
 
-  
 
- toString() - Method in class simpledb.TupleDesc
 
- 
Returns a String describing this descriptor.
 
- totalRecords - Variable in class simpledb.LogFile
 
-  
 
- TransactionAbortedException - Exception in simpledb
 
- 
Exception that is thrown when a transaction has aborted.
 
- TransactionAbortedException() - Constructor for exception simpledb.TransactionAbortedException
 
-  
 
- transactionComplete(TransactionId) - Method in class simpledb.BufferPool
 
- 
Release all locks associated with a given transaction.
 
- transactionComplete(TransactionId, boolean) - Method in class simpledb.BufferPool
 
- 
Commit or abort a given transaction; release all locks associated to
 the transaction.
 
- TransactionId - Class in simpledb
 
- 
TransactionId is a class that contains the identifier of a transaction.
 
- TransactionId() - Constructor for class simpledb.TransactionId
 
-  
 
- Tuple - Class in simpledb
 
- 
Tuple maintains information about the contents of a tuple.
 
- Tuple(TupleDesc) - Constructor for class simpledb.Tuple
 
- 
Create a new tuple with the specified schema (type).
 
- TupleDesc - Class in simpledb
 
- 
TupleDesc describes the schema of a tuple.
 
- TupleDesc(Type[], String[]) - Constructor for class simpledb.TupleDesc
 
- 
Create a new TupleDesc with typeAr.length fields with fields of the
 specified types, with associated named fields.
 
- TupleDesc(Type[]) - Constructor for class simpledb.TupleDesc
 
- 
Constructor.
 
- TupleDesc.TDItem - Class in simpledb
 
- 
A help class to facilitate organizing the information of each field
 
- TupleIterator - Class in simpledb
 
- 
Implements a DbIterator by wrapping an Iterable.
 
- TupleIterator(TupleDesc, Iterable<Tuple>) - Constructor for class simpledb.TupleIterator
 
- 
Constructs an iterator from the specified Iterable, and the specified
 descriptor.
 
- tupleno() - Method in class simpledb.RecordId
 
-  
 
- tuples - Variable in class simpledb.HeapPage
 
-  
 
- tuples - Variable in class simpledb.TupleIterator
 
-  
 
- Type - Enum in simpledb
 
- 
Class representing a type in SimpleDB.
 
- Type() - Constructor for enum simpledb.Type
 
-