A B C D E F G H I J K L M N O P R S T U V W

A

ATTRCATNAME - Static variable in interface global.Catalogglobal
 
AddFileEntryException - exception btree.AddFileEntryException.
 
AddFileEntryException() - Constructor for class btree.AddFileEntryException
 
AddFileEntryException(Exception, String) - Constructor for class btree.AddFileEntryException
 
Ascending - Static variable in class global.TupleOrder
 
AttrOperator - class global.AttrOperator.
Enumeration class for AttrOperator
AttrOperator(int) - Constructor for class global.AttrOperator
AttrOperator Constructor
An attribute operator types can be defined as AttrOperator attrOperator = new AttrOperator(AttrOperator.aopEQ); and subsequently used as if (attrOperator.attrOperator == AttrOperator.aopEQ) ....
AttrType - class global.AttrType.
Enumeration class for AttrType
AttrType(int) - Constructor for class global.AttrType
AttrType Constructor
An attribute type of String can be defined as AttrType attrType = new AttrType(AttrType.attrString); and subsequently used as if (attrType.attrType == AttrType.attrString) ....
add_file_entry(String, PageId) - Method in class diskmgr.DB
Adds a file entry to the header page(s).
allocate_page(PageId) - Method in class diskmgr.DB
Allocate a set of pages where the run size is taken to be 1 by default.
allocate_page(PageId, int) - Method in class diskmgr.DB
user specified run_size
aopEQ - Static variable in class global.AttrOperator
 
aopGE - Static variable in class global.AttrOperator
 
aopGT - Static variable in class global.AttrOperator
 
aopLE - Static variable in class global.AttrOperator
 
aopLT - Static variable in class global.AttrOperator
 
aopNE - Static variable in class global.AttrOperator
 
aopNOP - Static variable in class global.AttrOperator
 
aopNOT - Static variable in class global.AttrOperator
 
attrInteger - Static variable in class global.AttrType
 
attrNull - Static variable in class global.AttrType
 
attrOperator - Variable in class global.AttrOperator
 
attrReal - Static variable in class global.AttrType
 
attrString - Static variable in class global.AttrType
 
attrSymbol - Static variable in class global.AttrType
 
attrType - Variable in class global.AttrType
 
available_space() - Method in class heap.HFPage
returns the amount of available space on the page.

B

BT - class btree.BT.
This file contains, among some debug utilities, the interface to our key and data abstraction.
BT() - Constructor for class btree.BT
 
BTFileScan - class btree.BTFileScan.
BTFileScan implements a search/iterate interface to B+ tree index files (class BTreeFile).
BTFileScan() - Constructor for class btree.BTFileScan
 
BTHEAD - Static variable in class btree.NodeType
Define a type for header page of BTFile
BTIndexPage - class btree.BTIndexPage.
A BTIndexPage is an index page on a B+ tree.
BTIndexPage(PageId, int) - Constructor for class btree.BTIndexPage
pin the page with pageno, and get the corresponding BTIndexPage, also it sets the type of node to be NodeType.INDEX.
BTIndexPage(Page, int) - Constructor for class btree.BTIndexPage
associate the BTIndexPage instance with the Page instance, also it sets the type of node to be NodeType.INDEX.
BTIndexPage(int) - Constructor for class btree.BTIndexPage
 
BTLeafPage - class btree.BTLeafPage.
A BTLeafPage is a leaf page on a B+ tree.
BTLeafPage(PageId, int) - Constructor for class btree.BTLeafPage
pin the page with pageno, and get the corresponding BTLeafPage, also it sets the type to be NodeType.LEAF.
BTLeafPage(Page, int) - Constructor for class btree.BTLeafPage
associate the BTLeafPage instance with the Page instance, also it sets the type to be NodeType.LEAF.
BTLeafPage(int) - Constructor for class btree.BTLeafPage
new a page, associate the BTLeafPage instance with the Page instance, also it sets the type to be NodeType.LEAF.
BTSortedPage - class btree.BTSortedPage.
BTsortedPage class just holds abstract records in sorted order, based on how they compare using the key interface from BT.java.
BTSortedPage(PageId, int) - Constructor for class btree.BTSortedPage
pin the page with pageno, and get the corresponding SortedPage
BTSortedPage(Page, int) - Constructor for class btree.BTSortedPage
associate the SortedPage instance with the Page instance
BTSortedPage(int) - Constructor for class btree.BTSortedPage
new a page, and associate the SortedPage instance with the Page instance
BTreeFile - class btree.BTreeFile.
btfile.java This is the main definition of class BTreeFile, which derives from abstract base class IndexFile.
BTreeFile(String) - Constructor for class btree.BTreeFile
BTreeFile class an index file with given filename should already exist; this opens it.
BTreeFile(String, int, int, int) - Constructor for class btree.BTreeFile
if index file exists, open it; else create it.
B_Index - Static variable in class global.IndexType
 
BufMgr - class bufmgr.BufMgr.
The buffer manager class, it allocates new pages for the buffer pool, pins and unpins the frame, frees the frame page, and uses the replacement algorithm to replace the page.
BufMgr(int, String) - Constructor for class bufmgr.BufMgr
Create a buffer manager object.
BufMgrException - exception bufmgr.BufMgrException.
 
BufMgrException(Exception, String) - Constructor for class bufmgr.BufMgrException
 
BufferPoolExceededException - exception bufmgr.BufferPoolExceededException.
 
BufferPoolExceededException(Exception, String) - Constructor for class bufmgr.BufferPoolExceededException
 
btree - package btree
 
bufmgr - package bufmgr
 

C

CUR_PAGE - Static variable in class heap.HFPage
 
Catalogglobal - interface global.Catalogglobal.
 
ChainException - exception chainexception.ChainException.
This class is used for error handling.
ChainException(Exception, String) - Constructor for class chainexception.ChainException
Establish the stack for exceptions.
ChainException() - Constructor for class chainexception.ChainException
Default constructor.
CompareTupleWithTuple(AttrType, Tuple, int, Tuple, int) - Static method in class iterator.TupleUtils
This function compares a tuple with another tuple in respective field, and returns: 0 if the two are equal, 1 if the tuple is greater, -1 if the tuple is smaller,
CompareTupleWithValue(AttrType, Tuple, int, Tuple) - Static method in class iterator.TupleUtils
This function compares tuple1 with another tuple2 whose field number is same as the tuple1
CondExpr - class iterator.CondExpr.
This clas will hold single select condition It is an element of linked list which is logically connected by OR operators.
CondExpr() - Constructor for class iterator.CondExpr
constructor
ConstructPageException - exception btree.ConstructPageException.
 
ConstructPageException() - Constructor for class btree.ConstructPageException
 
ConstructPageException(String) - Constructor for class btree.ConstructPageException
 
ConstructPageException(Exception, String) - Constructor for class btree.ConstructPageException
 
Convert - class global.Convert.
 
Convert() - Constructor for class global.Convert
 
ConvertException - exception btree.ConvertException.
 
ConvertException() - Constructor for class btree.ConvertException
 
ConvertException(String) - Constructor for class btree.ConvertException
 
ConvertException(Exception, String) - Constructor for class btree.ConvertException
 
chainexception - package chainexception
 
close() - Method in class btree.BTreeFile
Close the B+ tree file.
close() - Method in class iterator.DuplElim
implement the abstract method close() from super class Iterator to finish cleaning up
close() - Method in class iterator.FileScan
implement the abstract method close() from super class Iterator to finish cleaning up
close() - Method in class iterator.Iterator
 
close() - Method in class iterator.NestedLoopsJoins
implement the abstract method close() from super class Iterator to finish cleaning up
close() - Method in class iterator.Sort
Cleaning up, including releasing buffer pages from the buffer pool and removing temporary files from the database.
close() - Method in class iterator.SortMerge
implement the abstract method close() from super class Iterator to finish cleaning up
closeDB() - Method in class diskmgr.DB
Close DB file.
closeFlag - Variable in class iterator.Iterator
a flag to indicate whether this iterator has been closed.
closescan() - Method in class heap.Scan
Closes the Scan object
copyFldOffset() - Method in class heap.Tuple
Makes a copy of the fldOffset array
copyPageId(PageId) - Method in class global.PageId
make a copy of the given pageId
copyRid(RID) - Method in class global.RID
make a copy of the given rid

D

DB - class diskmgr.DB.
 
DB() - Constructor for class diskmgr.DB
default constructor.
DBDestroy() - Method in class diskmgr.DB
Destroy the database, removing the file that stores it.
DEBUG - Static variable in interface global.Flags
 
DISTINCTKEYS - Static variable in interface global.Catalogglobal
 
DPFIXED - Static variable in class heap.HFPage
 
DataClass - class btree.DataClass.
DataClass: An abstarct class.
DataClass() - Constructor for class btree.DataClass
 
Delete(KeyClass, RID) - Method in class btree.BTreeFile
delete leaf entry given its pair.
Delete(KeyClass, RID) - Method in class btree.IndexFile
Delete entry from the index file.
DeleteFashion - class btree.DeleteFashion.
DeleteType class define which delete type (naive or full) will be
DeleteFashion() - Constructor for class btree.DeleteFashion
 
DeleteFashionException - exception btree.DeleteFashionException.
 
DeleteFashionException() - Constructor for class btree.DeleteFashionException
 
DeleteFashionException(String) - Constructor for class btree.DeleteFashionException
 
DeleteFashionException(Exception, String) - Constructor for class btree.DeleteFashionException
 
DeleteFileEntryException - exception btree.DeleteFileEntryException.
 
DeleteFileEntryException() - Constructor for class btree.DeleteFileEntryException
 
DeleteFileEntryException(String) - Constructor for class btree.DeleteFileEntryException
 
DeleteFileEntryException(Exception, String) - Constructor for class btree.DeleteFileEntryException
 
DeleteRecException - exception btree.DeleteRecException.
 
DeleteRecException() - Constructor for class btree.DeleteRecException
 
DeleteRecException(String) - Constructor for class btree.DeleteRecException
 
DeleteRecException(Exception, String) - Constructor for class btree.DeleteRecException
 
Descending - Static variable in class global.TupleOrder
 
DestroyBTreeFileScan() - Method in class btree.BTFileScan
destructor.
DiskMgrException - exception diskmgr.DiskMgrException.
 
DiskMgrException(Exception, String) - Constructor for class diskmgr.DiskMgrException
 
DuplElim - class iterator.DuplElim.
Eleminate the duplicate tuples from the input relation
DuplElim(AttrType[], short, short[], Iterator, int, boolean) - Constructor for class iterator.DuplElim
Constructor to set up some information.
DuplElimException - exception iterator.DuplElimException.
 
DuplElimException(String) - Constructor for class iterator.DuplElimException
 
DuplElimException(Exception, String) - Constructor for class iterator.DuplElimException
 
DuplicateEntryException - exception diskmgr.DuplicateEntryException.
 
DuplicateEntryException(Exception, String) - Constructor for class diskmgr.DuplicateEntryException
 
data - Variable in class btree.KeyDataEntry
data in the (key, data)
db_name() - Method in class diskmgr.DB
Functions to return some characteristics of the database.
db_num_pages() - Method in class diskmgr.DB
 
db_page_size() - Method in class diskmgr.DB
 
deallocate_page(PageId, int) - Method in class diskmgr.DB
Deallocate a set of pages starting at the specified page number and a run size can be specified.
deallocate_page(PageId) - Method in class diskmgr.DB
Deallocate a set of pages starting at the specified page number with run size = 1
delEntry(KeyDataEntry) - Method in class btree.BTLeafPage
delete a data entry in the leaf page.
deleteFile() - Method in class heap.Heapfile
Delete the file from the database.
deleteRecord(RID) - Method in class heap.HFPage
delete the record with the specified rid
deleteRecord(RID) - Method in class heap.Heapfile
Delete record from file with given rid.
deleteSortedRecord(RID) - Method in class btree.BTSortedPage
Deletes a record from a sorted record page.
delete_current() - Method in class btree.BTFileScan
Delete currently-being-scanned(i.e., just scanned) data entry.
delete_current() - Method in class btree.IndexFileScan
Delete the current record.
delete_file_entry(String) - Method in class diskmgr.DB
Delete the entry corresponding to a file from the header page(s).
deq() - Method in class iterator.pnodePQ
removes the minimum (Ascending) or maximum (Descending) element from the tree.
deq() - Method in class iterator.pnodeSplayPQ
Removes the minimum (Ascending) or maximum (Descending) element.
destroyFile() - Method in class btree.BTreeFile
Destroy entire B+ tree file.
destroyTrace() - Static method in class btree.BTreeFile
Stop tracing.
diskmgr - package diskmgr
 
dummy - Static variable in class iterator.pnodeSplayNode
a static dummy node for use in some methods
dumpPage() - Method in class heap.HFPage
Dump contents of a page
dump_space_map() - Method in class diskmgr.DB
Print out the space map of the database.

E

Equal(Tuple, Tuple, AttrType[], int) - Static method in class iterator.TupleUtils
This function Compares two Tuple inn all fields
Eval(CondExpr[], Tuple, Tuple, AttrType[], AttrType[]) - Static method in class iterator.PredEval
predicate evaluate, according to the condition ConExpr, judge if the two tuple can join.
ExtendedSystemDefs - class global.ExtendedSystemDefs.
 
ExtendedSystemDefs(String, int, int, String) - Constructor for class global.ExtendedSystemDefs
 
ExtendedSystemDefs(String, String, int, int, int, String) - Constructor for class global.ExtendedSystemDefs
 
empty() - Method in class heap.HFPage
Determining if the page is empty
empty() - Method in class iterator.SpoofIbuf
 
empty() - Method in class iterator.pnodePQ
tests whether the tree is empty
enq(pnode) - Method in class iterator.pnodePQ
insert an element in the tree in the correct order.
enq(pnode) - Method in class iterator.pnodeSplayPQ
Inserts an element into the binary tree.
equals(KeyDataEntry) - Method in class btree.KeyDataEntry
shallow equal.
equals(RID) - Method in class global.RID
Compares two RID object, i.e, this to the rid

F

FREE_SPACE - Static variable in class heap.HFPage
 
FULL_DELETE - Static variable in class btree.DeleteFashion
 
FieldNumberOutOfBoundException - exception heap.FieldNumberOutOfBoundException.
 
FieldNumberOutOfBoundException() - Constructor for class heap.FieldNumberOutOfBoundException
 
FieldNumberOutOfBoundException(Exception, String) - Constructor for class heap.FieldNumberOutOfBoundException
 
FileAlreadyDeletedException - exception heap.FileAlreadyDeletedException.
 
FileAlreadyDeletedException() - Constructor for class heap.FileAlreadyDeletedException
 
FileAlreadyDeletedException(Exception, String) - Constructor for class heap.FileAlreadyDeletedException
 
FileEntryNotFoundException - exception diskmgr.FileEntryNotFoundException.
 
FileEntryNotFoundException(Exception, String) - Constructor for class diskmgr.FileEntryNotFoundException
 
FileIOException - exception diskmgr.FileIOException.
 
FileIOException(Exception, String) - Constructor for class diskmgr.FileIOException
 
FileNameTooLongException - exception diskmgr.FileNameTooLongException.
 
FileNameTooLongException(Exception, String) - Constructor for class diskmgr.FileNameTooLongException
 
FileScan - class iterator.FileScan.
open a heapfile and according to the condition expression to get output file, call get_next to get all tuples
FileScan(String, AttrType[], short[], short, int, FldSpec[], CondExpr[]) - Constructor for class iterator.FileScan
constructor
FileScanException - exception iterator.FileScanException.
 
FileScanException(String) - Constructor for class iterator.FileScanException
 
FileScanException(Exception, String) - Constructor for class iterator.FileScanException
 
Flags - interface global.Flags.
This class defines the boolean variables that are used to simulate the conditional compilation in C++.
FldSpec - class iterator.FldSpec.
 
FldSpec(RelSpec, int) - Constructor for class iterator.FldSpec
contrctor
FreePageException - exception btree.FreePageException.
 
FreePageException() - Constructor for class btree.FreePageException
 
FreePageException(String) - Constructor for class btree.FreePageException
 
FreePageException(Exception, String) - Constructor for class btree.FreePageException
 
firstRecord() - Method in class heap.HFPage
 
flush() - Method in class iterator.IoBuf
returns the numbers of tuples written
flush() - Method in class iterator.OBuf
returns the # of tuples written.
flushAllPages() - Method in class bufmgr.BufMgr
Flushes all pages of the buffer pool to disk
flushPage(PageId) - Method in class bufmgr.BufMgr
Added to flush a particular page of the buffer pool to disk
frameTable() - Method in class bufmgr.BufMgr
A few routines currently need direct access to the FrameTable.
freePage(PageId) - Method in class bufmgr.BufMgr
User should call this method if she needs to delete a page.
free_buffer_pages(int, PageId[]) - Method in class iterator.Iterator
free all the buffer pages we requested earlier.

G

Get(Tuple) - Method in class iterator.IoBuf
get a tuple from current buffer,pass reference buf to this method usage:temp_tuple = tuple.Get(buf);
Get(Tuple) - Method in class iterator.SpoofIbuf
get a tuple from current buffer,pass reference buf to this method usage:temp_tuple = tuple.Get(buf);
GetFileEntryException - exception btree.GetFileEntryException.
 
GetFileEntryException() - Constructor for class btree.GetFileEntryException
 
GetFileEntryException(String) - Constructor for class btree.GetFileEntryException
 
GetFileEntryException(Exception, String) - Constructor for class btree.GetFileEntryException
 
GlobalConst - interface global.GlobalConst.
 
getCharFld(int) - Method in class heap.Tuple
Convert this field into a character
getCharValue(int, byte[]) - Static method in class global.Convert
reads 2 bytes from the given byte array at the specified position convert it to a character
getCurPage() - Method in class heap.HFPage
 
getCurrent(RID) - Method in class btree.BTLeafPage
getCurrent returns the current record in the iteration; it is like getNext except it does not advance the iterator.
getData() - Method in class btree.LeafData
get a copy of the rid
getFirst(RID) - Method in class btree.BTIndexPage
Iterators.
getFirst(RID) - Method in class btree.BTLeafPage
Iterators.
getFloFld(int) - Method in class heap.Tuple
Convert this field in to float
getFloValue(int, byte[]) - Static method in class global.Convert
read 4 bytes from given byte array at the specified position convert it to a float value
getHFpageArray() - Method in class heap.HFPage
 
getHeaderPage() - Method in class btree.BTreeFile
Access method to data member.
getIntFld(int) - Method in class heap.Tuple
Convert this field into integer
getIntValue(int, byte[]) - Static method in class global.Convert
read 4 bytes from given byte array at the specified position convert it to an integer
getKey() - Method in class btree.IntegerKey
get a copy of the integer key
getKey() - Method in class btree.StringKey
get a copy of the istring key
getLength() - Method in class heap.Tuple
get the length of a tuple, call this method if you did not call setHdr () before
getNext(RID) - Method in class btree.BTIndexPage
Iterators.
getNext(RID) - Method in class btree.BTLeafPage
Iterators.
getNext(RID) - Method in class heap.Scan
Retrieve the next record in a sequential scan
getNextPage() - Method in class heap.HFPage
 
getNumBuffers() - Method in class bufmgr.BufMgr
Gets the total number of buffers.
getNumUnpinnedBuffers() - Method in class bufmgr.BufMgr
Gets the total number of unpinned buffer frames.
getOffset() - Method in class heap.Tuple
get the offset of a tuple
getPrevPage() - Method in class heap.HFPage
 
getRecCnt() - Method in class heap.Heapfile
Return number of records in file.
getRecord(RID) - Method in class heap.HFPage
copies out record with RID rid into record pointer.
getRecord(RID) - Method in class heap.Heapfile
Read record from file, returning pointer and length.
getShortValue(int, byte[]) - Static method in class global.Convert
read 2 bytes from given byte array at the specified position convert it to a short integer
getSlotCnt() - Method in class heap.HFPage
 
getSlotLength(int) - Method in class heap.HFPage
 
getSlotOffset(int) - Method in class heap.HFPage
 
getStrFld(int) - Method in class heap.Tuple
Convert this field into String
getStrValue(int, byte[], int) - Static method in class global.Convert
reads a string that has been encoded using a modified UTF-8 format from the given byte array at the specified position
getTupleByteArray() - Method in class heap.Tuple
Copy the tuple byte array out
getType() - Method in class heap.HFPage
 
get_buffer_pages(int, PageId[], byte[][]) - Method in class iterator.Iterator
tries to get n_pages of buffer space
get_file_entry(String) - Method in class diskmgr.DB
Get the entry corresponding to the given file.
get_next() - Method in class btree.BTFileScan
Iterate once (during a scan).
get_next() - Method in class btree.IndexFileScan
Get the next record.
get_next() - Method in class iterator.DuplElim
The tuple is returned.
get_next() - Method in class iterator.FileScan
 
get_next() - Method in class iterator.Iterator
abstract method, every subclass must implement it.
get_next() - Method in class iterator.NestedLoopsJoins
 
get_next() - Method in class iterator.Sort
Returns the next tuple in sorted order.
get_next() - Method in class iterator.SortMerge
The tuple is returned All this function has to do is to get 1 tuple from one of the Iterators (from both initially), use the sorting order to determine which one gets sent up.
getpage() - Method in class diskmgr.Page
return the data byte array
global - package global
 

H

HFBufMgrException - exception heap.HFBufMgrException.
 
HFBufMgrException() - Constructor for class heap.HFBufMgrException
 
HFBufMgrException(Exception, String) - Constructor for class heap.HFBufMgrException
 
HFDiskMgrException - exception heap.HFDiskMgrException.
 
HFDiskMgrException() - Constructor for class heap.HFDiskMgrException
 
HFDiskMgrException(Exception, String) - Constructor for class heap.HFDiskMgrException
 
HFException - exception heap.HFException.
 
HFException() - Constructor for class heap.HFException
 
HFException(Exception, String) - Constructor for class heap.HFException
 
HFPage - class heap.HFPage.
Class heap file page.
HFPage() - Constructor for class heap.HFPage
Default constructor
HFPage(Page) - Constructor for class heap.HFPage
Constructor of class HFPage open a HFPage and make this HFpage piont to the given page
Hash - Static variable in class global.IndexType
 
HashEntryNotFoundException - exception bufmgr.HashEntryNotFoundException.
 
HashEntryNotFoundException(Exception, String) - Constructor for class bufmgr.HashEntryNotFoundException
 
HashOperationException - exception bufmgr.HashOperationException.
 
HashOperationException(Exception, String) - Constructor for class bufmgr.HashOperationException
 
Heapfile - class heap.Heapfile.
 
Heapfile(String) - Constructor for class heap.Heapfile
Initialize.
heap - package heap
 

I

INDEX - Static variable in class btree.NodeType
Define constant INDEX
INDEXCATNAME - Static variable in interface global.Catalogglobal
 
INDEXPAGES - Static variable in interface global.Catalogglobal
 
INVALID_PAGE - Static variable in interface global.GlobalConst
 
IndexData - class btree.IndexData.
IndexData: It extends the DataClass.
IndexFile - class btree.IndexFile.
Base class for a index file
IndexFile() - Constructor for class btree.IndexFile
 
IndexFileScan - class btree.IndexFileScan.
Base class for a index file scan
IndexFileScan() - Constructor for class btree.IndexFileScan
 
IndexFullDeleteException - exception btree.IndexFullDeleteException.
 
IndexFullDeleteException() - Constructor for class btree.IndexFullDeleteException
 
IndexFullDeleteException(String) - Constructor for class btree.IndexFullDeleteException
 
IndexFullDeleteException(Exception, String) - Constructor for class btree.IndexFullDeleteException
 
IndexInsertRecException - exception btree.IndexInsertRecException.
 
IndexInsertRecException() - Constructor for class btree.IndexInsertRecException
 
IndexInsertRecException(String) - Constructor for class btree.IndexInsertRecException
 
IndexInsertRecException(Exception, String) - Constructor for class btree.IndexInsertRecException
 
IndexSearchException - exception btree.IndexSearchException.
 
IndexSearchException() - Constructor for class btree.IndexSearchException
 
IndexSearchException(String) - Constructor for class btree.IndexSearchException
 
IndexSearchException(Exception, String) - Constructor for class btree.IndexSearchException
 
IndexType - class global.IndexType.
Enumeration class for IndexType
IndexType(int) - Constructor for class global.IndexType
IndexType Constructor
An index type can be defined as IndexType indexType = new IndexType(IndexType.Hash); and subsequently used as if (indexType.indexType == IndexType.Hash) ....
InsertException - exception btree.InsertException.
 
InsertException() - Constructor for class btree.InsertException
 
InsertException(String) - Constructor for class btree.InsertException
 
InsertException(Exception, String) - Constructor for class btree.InsertException
 
InsertRecException - exception btree.InsertRecException.
 
InsertRecException() - Constructor for class btree.InsertRecException
 
InsertRecException(String) - Constructor for class btree.InsertRecException
 
InsertRecException(Exception, String) - Constructor for class btree.InsertRecException
 
IntegerKey - class btree.IntegerKey.
IntegerKey: It extends the KeyClass.
IntegerKey(Integer) - Constructor for class btree.IntegerKey
Class constructor
IntegerKey(int) - Constructor for class btree.IntegerKey
Class constructor
InvalidBufferException - exception bufmgr.InvalidBufferException.
 
InvalidBufferException(Exception, String) - Constructor for class bufmgr.InvalidBufferException
 
InvalidFrameNumberException - exception bufmgr.InvalidFrameNumberException.
 
InvalidFrameNumberException(Exception, String) - Constructor for class bufmgr.InvalidFrameNumberException
 
InvalidPageNumberException - exception diskmgr.InvalidPageNumberException.
 
InvalidPageNumberException(Exception, String) - Constructor for class diskmgr.InvalidPageNumberException
 
InvalidRelation - exception iterator.InvalidRelation.
 
InvalidRelation(String) - Constructor for class iterator.InvalidRelation
 
InvalidRelation(Exception, String) - Constructor for class iterator.InvalidRelation
 
InvalidRunSizeException - exception diskmgr.InvalidRunSizeException.
 
InvalidRunSizeException(Exception, String) - Constructor for class diskmgr.InvalidRunSizeException
 
InvalidSlotNumberException - exception heap.InvalidSlotNumberException.
 
InvalidSlotNumberException() - Constructor for class heap.InvalidSlotNumberException
 
InvalidSlotNumberException(Exception, String) - Constructor for class heap.InvalidSlotNumberException
 
InvalidTupleSizeException - exception heap.InvalidTupleSizeException.
 
InvalidTupleSizeException() - Constructor for class heap.InvalidTupleSizeException
 
InvalidTupleSizeException(Exception, String) - Constructor for class heap.InvalidTupleSizeException
 
InvalidTypeException - exception heap.InvalidTypeException.
 
InvalidTypeException() - Constructor for class heap.InvalidTypeException
 
InvalidTypeException(Exception, String) - Constructor for class heap.InvalidTypeException
 
InvalidUpdateException - exception heap.InvalidUpdateException.
 
InvalidUpdateException() - Constructor for class heap.InvalidUpdateException
 
InvalidUpdateException(Exception, String) - Constructor for class heap.InvalidUpdateException
 
IoBuf - class iterator.IoBuf.
 
IoBuf() - Constructor for class iterator.IoBuf
 
IoBuf() - Method in class iterator.IoBuf
Constructor - use init to initialize.
Iterator - class iterator.Iterator.
All the relational operators and access methods are iterators.
Iterator() - Constructor for class iterator.Iterator
 
IteratorBMException - exception iterator.IteratorBMException.
 
IteratorBMException(String) - Constructor for class iterator.IteratorBMException
 
IteratorBMException(Exception, String) - Constructor for class iterator.IteratorBMException
 
IteratorException - exception btree.IteratorException.
 
IteratorException() - Constructor for class btree.IteratorException
 
IteratorException(String) - Constructor for class btree.IteratorException
 
IteratorException(Exception, String) - Constructor for class btree.IteratorException
 
indexType - Variable in class global.IndexType
 
init(int) - Method in class global.ExtendedSystemDefs
 
init(String, String, int, int, int, String) - Method in class global.SystemDefs
 
init(PageId, Page) - Method in class heap.HFPage
Constructor of class HFPage initialize a new page
init(byte[][], int, int, Heapfile) - Method in class iterator.IoBuf
Initialize some necessary inormation, call Iobuf to create the object, and call init to finish instantiation
init(byte[][], int, int, Heapfile, boolean) - Method in class iterator.OBuf
O_buf is an output buffer.
init(Heapfile, byte[][], int, int, int) - Method in class iterator.SpoofIbuf
Initialize some necessary inormation, call Iobuf to create the object, and call init to finish intantiation
innerRel - Static variable in class iterator.RelSpec
 
insert(KeyClass, RID) - Method in class btree.BTreeFile
insert record with the given key and rid
insert(KeyClass, RID) - Method in class btree.IndexFile
Insert entry into the index file.
insertKey(KeyClass, PageId) - Method in class btree.BTIndexPage
It inserts a value into the index page,
insertRecord(KeyClass, RID) - Method in class btree.BTLeafPage
insertRecord READ THIS DESCRIPTION CAREFULLY.
insertRecord(byte[]) - Method in class heap.HFPage
inserts a new record onto the page, returns RID of this record
insertRecord(byte[]) - Method in class heap.Heapfile
Insert record into file, return its Rid.
integer - Variable in class iterator.Operand
 
item - Variable in class iterator.pnodeSplayNode
a reference to the element in the node
iterator - package iterator
 

J

JavabaseBM - Static variable in class global.SystemDefs
 
JavabaseCatalog - Static variable in class global.SystemDefs
 
JavabaseDB - Static variable in class global.SystemDefs
 
JavabaseDBName - Static variable in class global.SystemDefs
 
JavabaseLogName - Static variable in class global.SystemDefs
 
Join(Tuple, AttrType[], Tuple, AttrType[], Tuple, FldSpec[], int) - Static method in class iterator.Projection
Tuple t1 and Tuple t2 will be joined, and the result will be stored in Tuple Jtuple,before calling this mehtod.
JoinLowMemory - exception iterator.JoinLowMemory.
 
JoinLowMemory(String) - Constructor for class iterator.JoinLowMemory
 
JoinLowMemory(Exception, String) - Constructor for class iterator.JoinLowMemory
 
JoinNewFailed - exception iterator.JoinNewFailed.
 
JoinNewFailed(String) - Constructor for class iterator.JoinNewFailed
 
JoinNewFailed(Exception, String) - Constructor for class iterator.JoinNewFailed
 
JoinsException - exception iterator.JoinsException.
 
JoinsException(String) - Constructor for class iterator.JoinsException
 
JoinsException(Exception, String) - Constructor for class iterator.JoinsException
 

K

KeyClass - class btree.KeyClass.
KeyClass: An abstarct class.
KeyClass() - Constructor for class btree.KeyClass
 
KeyDataEntry - class btree.KeyDataEntry.
KeyDataEntry: define (key, data) pair.
KeyDataEntry(Integer, PageId) - Constructor for class btree.KeyDataEntry
Class constructor
KeyDataEntry(KeyClass, PageId) - Constructor for class btree.KeyDataEntry
Class constructor.
KeyDataEntry(String, PageId) - Constructor for class btree.KeyDataEntry
Class constructor.
KeyDataEntry(Integer, RID) - Constructor for class btree.KeyDataEntry
Class constructor.
KeyDataEntry(KeyClass, RID) - Constructor for class btree.KeyDataEntry
Class constructor.
KeyDataEntry(String, RID) - Constructor for class btree.KeyDataEntry
Class constructor.
KeyDataEntry(KeyClass, DataClass) - Constructor for class btree.KeyDataEntry
Class constructor.
KeyNotMatchException - exception btree.KeyNotMatchException.
 
KeyNotMatchException() - Constructor for class btree.KeyNotMatchException
 
KeyNotMatchException(String) - Constructor for class btree.KeyNotMatchException
 
KeyNotMatchException(Exception, String) - Constructor for class btree.KeyNotMatchException
 
KeyTooLongException - exception btree.KeyTooLongException.
 
KeyTooLongException() - Constructor for class btree.KeyTooLongException
 
KeyTooLongException(String) - Constructor for class btree.KeyTooLongException
 
KeyTooLongException(Exception, String) - Constructor for class btree.KeyTooLongException
 
key - Variable in class btree.KeyDataEntry
key in the (key, data)
key - Variable in class iterator.RelSpec
 
keyCompare(KeyClass, KeyClass) - Static method in class btree.BT
It compares two keys.
keysize() - Method in class btree.BTFileScan
max size of the key
keysize() - Method in class btree.IndexFileScan
Returns the size of the key

L

LEAF - Static variable in class btree.NodeType
Define constant LEAF
LeafData - class btree.LeafData.
IndexData: It extends the DataClass.
LeafDeleteException - exception btree.LeafDeleteException.
 
LeafDeleteException() - Constructor for class btree.LeafDeleteException
 
LeafDeleteException(Exception, String) - Constructor for class btree.LeafDeleteException
 
LeafInsertRecException - exception btree.LeafInsertRecException.
 
LeafInsertRecException() - Constructor for class btree.LeafInsertRecException
 
LeafInsertRecException(String) - Constructor for class btree.LeafInsertRecException
 
LeafInsertRecException(Exception, String) - Constructor for class btree.LeafInsertRecException
 
LeafRedistributeException - exception btree.LeafRedistributeException.
 
LeafRedistributeException() - Constructor for class btree.LeafRedistributeException
 
LeafRedistributeException(String) - Constructor for class btree.LeafRedistributeException
 
LeafRedistributeException(Exception, String) - Constructor for class btree.LeafRedistributeException
 
LogicalOperator - class global.LogicalOperator.
Enumeration class for LogicalOperator
LogicalOperator(int) - Constructor for class global.LogicalOperator
LogicalOperator Constructor
A logical operator can be defined as LogicalOperator logicalOperator =
new LogicalOperator(LogicalOperator.lopOR); and subsequently used as if (logicalOperator.logicalOperator == LogicalOperator.lopOR) ....
LowMemException - exception iterator.LowMemException.
 
LowMemException(String) - Constructor for class iterator.LowMemException
 
LowMemException(Exception, String) - Constructor for class iterator.LowMemException
 
length() - Method in class iterator.pnodePQ
returns the number of elements in the tree.
logicalOperator - Variable in class global.LogicalOperator
 
lopAND - Static variable in class global.LogicalOperator
 
lopNOT - Static variable in class global.LogicalOperator
 
lopOR - Static variable in class global.LogicalOperator
 
lt - Variable in class iterator.pnodeSplayNode
the left child pointer

M

MAXATTRNAME - Static variable in interface global.GlobalConst
 
MAXFILENAME - Static variable in interface global.GlobalConst
also the name of a relation
MAXINDEXNAME - Static variable in interface global.GlobalConst
 
MAXNAME - Static variable in interface global.Catalogglobal
 
MAXNUMVAL - Static variable in interface global.Catalogglobal
 
MAXSTRINGLEN - Static variable in interface global.Catalogglobal
 
MAXSTRINGVAL - Static variable in interface global.Catalogglobal
 
MAX_NAME - Static variable in interface global.GlobalConst
 
MAX_SPACE - Static variable in interface global.GlobalConst
 
MINIBASE_ATTRCAT - Static variable in class global.ExtendedSystemDefs
 
MINIBASE_BUFFER_POOL_SIZE - Static variable in interface global.GlobalConst
Size of each frame.
MINIBASE_CATALOGPTR - Static variable in class global.ExtendedSystemDefs
 
MINIBASE_DBNAME - Static variable in class global.SystemDefs
 
MINIBASE_DB_SIZE - Static variable in interface global.GlobalConst
in Pages => the DBMS Manager tells the DB how much disk space is available for the database.
MINIBASE_DEFAULT_SHAREDMEM_SIZE - Static variable in interface global.GlobalConst
 
MINIBASE_INDCAT - Static variable in class global.ExtendedSystemDefs
 
MINIBASE_MAXARRSIZE - Static variable in interface global.Catalogglobal
 
MINIBASE_MAXARRSIZE - Static variable in interface global.GlobalConst
 
MINIBASE_MAX_TRANSACTIONS - Static variable in interface global.GlobalConst
 
MINIBASE_PAGESIZE - Static variable in interface global.GlobalConst
Size of page.
MINIBASE_RELCAT - Static variable in class global.ExtendedSystemDefs
 
MINIBASE_RESTART_FLAG - Static variable in class global.SystemDefs
 
MINNUMVAL - Static variable in interface global.Catalogglobal
 
MINSTRINGVAL - Static variable in interface global.Catalogglobal
 
max_size - Static variable in class heap.Tuple
Maximum size of any tuple

N

NAIVE_DELETE - Static variable in class btree.DeleteFashion
 
NEXT_PAGE - Static variable in class heap.HFPage
 
NUMBUF - Static variable in interface global.GlobalConst
 
NUMPAGESFILE - Static variable in interface global.Catalogglobal
 
NUMTUPLESFILE - Static variable in interface global.Catalogglobal
 
NestedLoopException - exception iterator.NestedLoopException.
 
NestedLoopException(String) - Constructor for class iterator.NestedLoopException
 
NestedLoopException(Exception, String) - Constructor for class iterator.NestedLoopException
 
NestedLoopsJoins - class iterator.NestedLoopsJoins.
This file contains an implementation of the nested loops join algorithm as described in the Shapiro paper.
NestedLoopsJoins(AttrType[], int, short[], AttrType[], int, short[], int, Iterator, String, CondExpr[], CondExpr[], FldSpec[], int) - Constructor for class iterator.NestedLoopsJoins
constructor Initialize the two relations which are joined, including relation type,
NoOutputBuffer - exception iterator.NoOutputBuffer.
 
NoOutputBuffer(String) - Constructor for class iterator.NoOutputBuffer
 
NoOutputBuffer(Exception, String) - Constructor for class iterator.NoOutputBuffer
 
NodeNotMatchException - exception btree.NodeNotMatchException.
 
NodeNotMatchException() - Constructor for class btree.NodeNotMatchException
 
NodeNotMatchException(String) - Constructor for class btree.NodeNotMatchException
 
NodeNotMatchException(Exception, String) - Constructor for class btree.NodeNotMatchException
 
NodeType - class btree.NodeType.
nodetype: define the type of node in B++ tree
NodeType() - Constructor for class btree.NodeType
 
None - Static variable in class global.IndexType
 
newPage(Page, int) - Method in class bufmgr.BufMgr
Call DB object to allocate a run of new pages and find a frame in the buffer pool for the first page and pin it.
new_scan(KeyClass, KeyClass) - Method in class btree.BTreeFile
create a scan with given keys Cases: (1) lo_key = null, hi_key = null scan the whole index (2) lo_key = null, hi_key!= null range scan from min to the hi_key (3) lo_key!= null, hi_key = null range scan from the lo_key to max (4) lo_key!= null, hi_key!= null, lo_key = hi_key exact match ( might not unique) (5) lo_key!= null, hi_key!= null, lo_key < hi_key range scan from lo_key to hi_key
next - Variable in class iterator.CondExpr
Pointer to the next element in linked list
nextRecord(RID) - Method in class heap.HFPage
 
noOfFlds() - Method in class heap.Tuple
Returns number of fields in this tuple

O

OBuf - class iterator.OBuf.
O_buf::Put takes tuples and stores them on the buffer pages that were passed to O_buf::init.
OBuf() - Constructor for class iterator.OBuf
fault constructor no args -- use init to initialize
Operand - class iterator.Operand.
 
Operand() - Constructor for class iterator.Operand
 
OutOfSpaceException - exception diskmgr.OutOfSpaceException.
 
OutOfSpaceException(Exception, String) - Constructor for class diskmgr.OutOfSpaceException
 
offset - Variable in class iterator.FldSpec
 
op - Variable in class iterator.CondExpr
Operator like "<"
opRANGE - Static variable in class global.AttrOperator
 
openDB(String) - Method in class diskmgr.DB
Open the database with the given name.
openDB(String, int) - Method in class diskmgr.DB
DB Constructors.
openHFpage(Page) - Method in class heap.HFPage
Constructor of class HFPage open a existed hfpage
openScan() - Method in class heap.Heapfile
Initiate a sequential scan.
operand1 - Variable in class iterator.CondExpr
the left operand and right operand
operand2 - Variable in class iterator.CondExpr
 
outer - Static variable in class iterator.RelSpec
 

P

PREV_PAGE - Static variable in class heap.HFPage
 
Page - class diskmgr.Page.
class Page
Page() - Constructor for class diskmgr.Page
default constructor
Page(byte[]) - Constructor for class diskmgr.Page
Constructor of class Page
PageId - class global.PageId.
class PageId
PageId() - Constructor for class global.PageId
Default constructor
PageId(int) - Constructor for class global.PageId
constructor of class
PageNotFoundException - exception bufmgr.PageNotFoundException.
 
PageNotFoundException(Exception, String) - Constructor for class bufmgr.PageNotFoundException
 
PageNotReadException - exception bufmgr.PageNotReadException.
 
PageNotReadException(Exception, String) - Constructor for class bufmgr.PageNotReadException
 
PagePinnedException - exception bufmgr.PagePinnedException.
 
PagePinnedException(Exception, String) - Constructor for class bufmgr.PagePinnedException
 
PageUnpinnedException - exception bufmgr.PageUnpinnedException.
 
PageUnpinnedException(Exception, String) - Constructor for class bufmgr.PageUnpinnedException
 
PinPageException - exception btree.PinPageException.
 
PinPageException() - Constructor for class btree.PinPageException
 
PinPageException(String) - Constructor for class btree.PinPageException
 
PinPageException(Exception, String) - Constructor for class btree.PinPageException
 
PredEval - class iterator.PredEval.
 
PredEval() - Constructor for class iterator.PredEval
 
PredEvalException - exception iterator.PredEvalException.
 
PredEvalException(String) - Constructor for class iterator.PredEvalException
 
PredEvalException(Exception, String) - Constructor for class iterator.PredEvalException
 
Project(Tuple, AttrType[], Tuple, FldSpec[], int) - Static method in class iterator.Projection
Tuple t1 will be projected the result will be stored in Tuple Jtuple
Projection - class iterator.Projection.
Jtuple has the appropriate types.
Projection() - Constructor for class iterator.Projection
 
Put(Tuple) - Method in class iterator.IoBuf
Writes a tuple to the output buffer
Put(Tuple) - Method in class iterator.OBuf
Writes a tuple to the output buffer
pageNo - Variable in class global.RID
public PageId pageNo
par - Variable in class iterator.pnodeSplayNode
the parent pointer
perm_mat - Variable in class iterator.FileScan
 
pid - Variable in class global.PageId
public int pid
pinPage(PageId, Page, boolean) - Method in class bufmgr.BufMgr
Check if this page is in buffer pool, otherwise find a frame for this page, read in and pin it.
pnode - class iterator.pnode.
A structure describing a tuple.
pnode() - Constructor for class iterator.pnode
class constructor, sets run_num to 0 and tuple to null.
pnode(int, Tuple) - Constructor for class iterator.pnode
class constructor, sets run_num and tuple.
pnodeCMP(pnode, pnode) - Method in class iterator.pnodePQ
compares two elements.
pnodeEQ(pnode, pnode) - Method in class iterator.pnodePQ
tests whether the two elements are equal.
pnodePQ - class iterator.pnodePQ.
Implements a sorted binary tree.
pnodePQ() - Constructor for class iterator.pnodePQ
class constructor, set count to 0.
pnodeSplayNode - class iterator.pnodeSplayNode.
An element in the binary tree.
pnodeSplayNode(pnode) - Constructor for class iterator.pnodeSplayNode
class constructor, sets all pointers to null.
pnodeSplayNode(pnode, pnodeSplayNode, pnodeSplayNode) - Constructor for class iterator.pnodeSplayNode
class constructor, sets all pointers.
pnodeSplayPQ - class iterator.pnodeSplayPQ.
Implements a sorted binary tree (extends class pnodePQ).
pnodeSplayPQ() - Constructor for class iterator.pnodeSplayPQ
class constructor, sets default values.
pnodeSplayPQ(int, AttrType, TupleOrder) - Constructor for class iterator.pnodeSplayPQ
class constructor.
position(RID) - Method in class heap.Scan
Position the scan cursor to the record with the given rid.
prev - Variable in class chainexception.ChainException
 
print(AttrType[]) - Method in class heap.Tuple
Print out the tuple
printAllLeafPages(BTreeHeaderPage) - Static method in class btree.BT
For debug.
printBTree(BTreeHeaderPage) - Static method in class btree.BT
For debug.
printPage(PageId, int) - Static method in class btree.BT
used for debug: to print a page out.
printStackTrace() - Method in class chainexception.ChainException
Print out all the exceptions caught across layers.

R

READ_BUFFER - Static variable in class iterator.IoBuf
 
RELCATNAME - Static variable in interface global.Catalogglobal
 
RELNAME - Static variable in interface global.Catalogglobal
 
RID - class global.RID.
class RID
RID() - Constructor for class global.RID
default constructor of class
RID(PageId, int) - Constructor for class global.RID
constructor of class
Random - Static variable in class global.TupleOrder
 
RecordNotFoundException - exception btree.RecordNotFoundException.
 
RecordNotFoundException() - Constructor for class btree.RecordNotFoundException
 
RecordNotFoundException(String) - Constructor for class btree.RecordNotFoundException
 
RecordNotFoundException(Exception, String) - Constructor for class btree.RecordNotFoundException
 
RedistributeException - exception btree.RedistributeException.
 
RedistributeException() - Constructor for class btree.RedistributeException
 
RedistributeException(String) - Constructor for class btree.RedistributeException
 
RedistributeException(Exception, String) - Constructor for class btree.RedistributeException
 
RelSpec - class iterator.RelSpec.
 
RelSpec(int) - Constructor for class iterator.RelSpec
constructor
ReplacerException - exception bufmgr.ReplacerException.
 
ReplacerException(Exception, String) - Constructor for class bufmgr.ReplacerException
 
read_page(PageId, Page) - Method in class diskmgr.DB
Read the contents of the specified page into a Page object
real - Variable in class iterator.Operand
 
relation - Variable in class iterator.FldSpec
 
reread() - Method in class iterator.IoBuf
if WRITE_BUFFER is true, call this mehtod to switch to read buffer.
returnRecord(RID) - Method in class heap.HFPage
returns a tuple in a byte array[pageSize] with given RID rid.
returnTupleByteArray() - Method in class heap.Tuple
return the data byte array
rt - Variable in class iterator.pnodeSplayNode
the right child pointer
run_num - Variable in class iterator.pnode
which run does this tuple belong

S

SIZE_OF_SLOT - Static variable in class heap.HFPage
 
SLOT_CNT - Static variable in class heap.HFPage
 
Scan - class heap.Scan.
A Scan object is created ONLY through the function openScan of a HeapFile.
Scan(Heapfile) - Constructor for class heap.Scan
The constructor pins the first directory page in the file and initializes its private data members from the private data member from hf
ScanDeleteException - exception btree.ScanDeleteException.
 
ScanDeleteException() - Constructor for class btree.ScanDeleteException
 
ScanDeleteException(String) - Constructor for class btree.ScanDeleteException
 
ScanDeleteException(Exception, String) - Constructor for class btree.ScanDeleteException
 
ScanIteratorException - exception btree.ScanIteratorException.
 
ScanIteratorException() - Constructor for class btree.ScanIteratorException
 
ScanIteratorException(String) - Constructor for class btree.ScanIteratorException
 
ScanIteratorException(Exception, String) - Constructor for class btree.ScanIteratorException
 
SelectType - class global.SelectType.
Enumeration class for SelectType
SelectType(int) - Constructor for class global.SelectType
SelectType Constructor
A selected type can be defined as SelectType selectType = new SelectType(SelectType.SelBoth); and subsequently used as if (selectType.selectType == SelectType.SelBoth) ....
SetValue(Tuple, Tuple, int, AttrType) - Static method in class iterator.TupleUtils
set up a tuple in specified field from a tuple
Sort - class iterator.Sort.
The Sort class sorts a file.
Sort(AttrType[], short, short[], Iterator, int, TupleOrder, int, int) - Constructor for class iterator.Sort
Class constructor, take information about the tuples, and set up the sorting
SortException - exception iterator.SortException.
 
SortException(String) - Constructor for class iterator.SortException
 
SortException(Exception, String) - Constructor for class iterator.SortException
 
SortMerge - class iterator.SortMerge.
This file contains the interface for the sort_merg joins.
SortMerge(AttrType[], int, short[], AttrType[], int, short[], int, int, int, int, int, Iterator, Iterator, boolean, boolean, TupleOrder, CondExpr[], FldSpec[], int) - Constructor for class iterator.SortMerge
constructor,initialization
SpaceNotAvailableException - exception heap.SpaceNotAvailableException.
 
SpaceNotAvailableException() - Constructor for class heap.SpaceNotAvailableException
 
SpaceNotAvailableException(Exception, String) - Constructor for class heap.SpaceNotAvailableException
 
SpoofIbuf - class iterator.SpoofIbuf.
 
SpoofIbuf() - Constructor for class iterator.SpoofIbuf
 
SpoofIbuf() - Method in class iterator.SpoofIbuf
constructor, use the init to initialize
StringKey - class btree.StringKey.
StringKey: It extends the KeyClass.
StringKey(String) - Constructor for class btree.StringKey
Class constructor
SystemDefs - class global.SystemDefs.
 
SystemDefs() - Constructor for class global.SystemDefs
 
SystemDefs(String, int, int, String) - Constructor for class global.SystemDefs
 
selBoth - Static variable in class global.SelectType
 
selExact - Static variable in class global.SelectType
 
selRange - Static variable in class global.SelectType
 
selUndefined - Static variable in class global.SelectType
 
selectType - Variable in class global.SelectType
 
setCharValue(char, int, byte[]) - Static method in class global.Convert
Update a character in the given byte array at the specified position.
setCurPage(PageId) - Method in class heap.HFPage
sets value of curPage to pageNo
setData(RID) - Method in class btree.LeafData
set the rid
setFloFld(int, float) - Method in class heap.Tuple
Set this field to float value
setFloValue(float, int, byte[]) - Static method in class global.Convert
update a float value in the given byte array at the specified position
setHdr(short, AttrType[], short[]) - Method in class heap.Tuple
setHdr will set the header of this tuple.
setIntFld(int, int) - Method in class heap.Tuple
Set this field to integer value
setIntValue(int, int, byte[]) - Static method in class global.Convert
update an integer value in the given byte array at the specified position
setKey(Integer) - Method in class btree.IntegerKey
set the integer key value
setKey(String) - Method in class btree.StringKey
set the string key value
setNextPage(PageId) - Method in class heap.HFPage
sets value of nextPage to pageNo
setPrevPage(PageId) - Method in class heap.HFPage
sets value of prevPage to pageNo
setShortValue(short, int, byte[]) - Static method in class global.Convert
update a short integer in the given byte array at the specified position
setSlot(int, int, int) - Method in class heap.HFPage
sets slot contents
setStrFld(int, String) - Method in class heap.Tuple
Set this field to String value
setStrValue(String, int, byte[]) - Static method in class global.Convert
Insert or update a string in the given byte array at the specified position.
setType(short) - Method in class heap.HFPage
sets value of type
setpage(byte[]) - Method in class diskmgr.Page
set the page with the given byte array
setup_op_tuple(Tuple, AttrType[], AttrType[], int, AttrType[], int, short[], short[], FldSpec[], int) - Static method in class iterator.TupleUtils
set up the Jtuple's attrtype, string size,field number for using join
setup_op_tuple(Tuple, AttrType[], AttrType[], int, short[], FldSpec[], int) - Static method in class iterator.TupleUtils
set up the Jtuple's attrtype, string size,field number for using project
show() - Method in class iterator.FileScan
 
size() - Method in class heap.Tuple
get the length of a tuple, call this method if you did call setHdr () before
slotNo - Variable in class global.RID
public int slotNo
string - Variable in class iterator.Operand
 
symbol - Variable in class iterator.Operand
 

T

TEST - Static variable in interface global.Flags
 
TYPE - Static variable in class heap.HFPage
 
Tuple - class heap.Tuple.
 
Tuple() - Constructor for class heap.Tuple
Class constructor Creat a new tuple with length = max_size,tuple offset = 0.
Tuple(byte[], int, int) - Constructor for class heap.Tuple
Constructor
Tuple(Tuple) - Constructor for class heap.Tuple
Constructor(used as tuple copy)
Tuple(int) - Constructor for class heap.Tuple
Class constructor Creat a new tuple with length = size,tuple offset = 0.
TupleOrder - class global.TupleOrder.
Enumeration class for TupleOrder
TupleOrder(int) - Constructor for class global.TupleOrder
TupleOrder Constructor
A tuple ordering can be defined as TupleOrder tupleOrder = new TupleOrder(TupleOrder.Random); and subsequently used as if (tupleOrder.tupleOrder == TupleOrder.Random) ....
TupleUtils - class iterator.TupleUtils.
some useful method when processing Tuple
TupleUtils() - Constructor for class iterator.TupleUtils
 
TupleUtilsException - exception iterator.TupleUtilsException.
 
TupleUtilsException(String) - Constructor for class iterator.TupleUtilsException
 
TupleUtilsException(Exception, String) - Constructor for class iterator.TupleUtilsException
 
toString() - Method in class btree.IndexData
 
toString() - Method in class btree.IntegerKey
 
toString() - Method in class btree.LeafData
 
toString() - Method in class btree.StringKey
 
toString() - Method in class global.AttrOperator
 
toString() - Method in class global.AttrType
 
toString() - Method in class global.IndexType
 
toString() - Method in class global.LogicalOperator
 
toString() - Method in class global.PageId
 
toString() - Method in class global.SelectType
 
toString() - Method in class global.TupleOrder
 
traceFilename(String) - Static method in class btree.BTreeFile
It causes a structured trace to be written to a file.
tuple - Variable in class iterator.pnode
the tuple reference
tupleCopy(Tuple) - Method in class heap.Tuple
Copy a tuple to the current tuple position you must make sure the tuple lengths must be equal
tupleInit(byte[], int, int) - Method in class heap.Tuple
This is used when you don't want to use the constructor
tupleOrder - Variable in class global.TupleOrder
 
tupleSet(byte[], int, int) - Method in class heap.Tuple
Set a tuple with the given tuple length and offset
type1 - Variable in class iterator.CondExpr
Types of operands, Null AttrType means that operand is not a literal but an attribute name
type2 - Variable in class iterator.CondExpr
 

U

USED_PTR - Static variable in class heap.HFPage
 
UnknowAttrType - exception iterator.UnknowAttrType.
 
UnknowAttrType(String) - Constructor for class iterator.UnknowAttrType
 
UnknowAttrType(Exception, String) - Constructor for class iterator.UnknowAttrType
 
UnknownKeyTypeException - exception iterator.UnknownKeyTypeException.
 
UnknownKeyTypeException() - Constructor for class iterator.UnknownKeyTypeException
 
UnknownKeyTypeException(String) - Constructor for class iterator.UnknownKeyTypeException
 
UnknownKeyTypeException(Exception, String) - Constructor for class iterator.UnknownKeyTypeException
 
UnpinPageException - exception btree.UnpinPageException.
 
UnpinPageException() - Constructor for class btree.UnpinPageException
 
UnpinPageException(String) - Constructor for class btree.UnpinPageException
 
UnpinPageException(Exception, String) - Constructor for class btree.UnpinPageException
 
unpinPage(PageId, boolean) - Method in class bufmgr.BufMgr
To unpin a page specified by a pageId.
updateRecord(RID, Tuple) - Method in class heap.Heapfile
Updates the specified record in the heapfile.

V

Value(Tuple, int) - Static method in class iterator.TupleUtils
get the string specified by the field number

W

WRITE_BUFFER - Static variable in class iterator.IoBuf
 
WrongPermat - exception iterator.WrongPermat.
 
WrongPermat(String) - Constructor for class iterator.WrongPermat
 
WrongPermat(Exception, String) - Constructor for class iterator.WrongPermat
 
writeToByteArray(byte[], int) - Method in class global.PageId
Write the pid into a specified bytearray at offset
writeToByteArray(byte[], int) - Method in class global.RID
Write the rid into a byte array at offset
write_page(PageId, Page) - Method in class diskmgr.DB
Write the contents in a page object to the specified page.

A B C D E F G H I J K L M N O P R S T U V W