Uses of Class
simpledb.file.Block

Packages that use Block
simpledb.buffer   
simpledb.file   
simpledb.index.btree   
simpledb.log   
simpledb.record   
simpledb.tx   
simpledb.tx.concurrency   
simpledb.tx.recovery   
 

Uses of Block in simpledb.buffer
 

Methods in simpledb.buffer that return Block
 Block Buffer.block()
          Returns a reference to the disk block that the buffer is pinned to.
 

Methods in simpledb.buffer with parameters of type Block
(package private)  void Buffer.assignToBlock(Block b)
          Reads the contents of the specified block into the buffer's page.
 Buffer BufferMgr.pin(Block blk)
          Pins a buffer to the specified block, potentially waiting until a buffer becomes available.
(package private)  Buffer BasicBufferMgr.pin(Block blk)
          Pins a buffer to the specified block.
 

Uses of Block in simpledb.file
 

Methods in simpledb.file that return Block
 Block Page.append(java.lang.String filename)
          Appends the contents of the page to the specified file.
(package private)  Block FileMgr.append(java.lang.String filename, java.nio.ByteBuffer bb)
          Appends the contents of a bytebuffer to the end of the specified file.
 

Methods in simpledb.file with parameters of type Block
 void Page.read(Block blk)
          Populates the page with the contents of the specified disk block.
(package private)  void FileMgr.read(Block blk, java.nio.ByteBuffer bb)
          Reads the contents of a disk block into a bytebuffer.
 void Page.write(Block blk)
          Writes the contents of the page to the specified disk block.
(package private)  void FileMgr.write(Block blk, java.nio.ByteBuffer bb)
          Writes the contents of a bytebuffer into a disk block.
 

Uses of Block in simpledb.index.btree
 

Methods in simpledb.index.btree that return Block
 Block BTreePage.appendNew(int flag)
          Appends a new block to the end of the specified B-tree file, having the specified flag value.
 Block BTreePage.split(int splitpos, int flag)
          Splits the page at the specified position.
 

Constructors in simpledb.index.btree with parameters of type Block
BTreeDir(Block blk, TableInfo ti, Transaction tx)
          Creates an object to hold the contents of the specified B-tree block.
BTreeLeaf(Block blk, TableInfo ti, Constant searchkey, Transaction tx)
          Opens a page to hold the specified leaf block.
BTreePage(Block currentblk, TableInfo ti, Transaction tx)
          Opens a page for the specified B-tree block.
 

Uses of Block in simpledb.log
 

Constructors in simpledb.log with parameters of type Block
LogIterator(Block blk)
          Creates an iterator for the records in the log file, positioned after the last log record.
 

Uses of Block in simpledb.record
 

Constructors in simpledb.record with parameters of type Block
RecordPage(Block blk, TableInfo ti, Transaction tx)
          Creates the record manager for the specified block.
 

Uses of Block in simpledb.tx
 

Methods in simpledb.tx that return Block
 Block Transaction.append(java.lang.String filename, PageFormatter fmtr)
          Appends a new block to the end of the specified file and returns a reference to it.
(package private)  Block BufferList.pinNew(java.lang.String filename, PageFormatter fmtr)
          Appends a new block to the specified file and pins it.
 

Methods in simpledb.tx with parameters of type Block
(package private)  Buffer BufferList.getBuffer(Block blk)
          Returns the buffer pinned to the specified block.
 int Transaction.getInt(Block blk, int offset)
          Returns the integer value stored at the specified offset of the specified block.
 java.lang.String Transaction.getString(Block blk, int offset)
          Returns the string value stored at the specified offset of the specified block.
 void Transaction.pin(Block blk)
          Pins the specified block.
(package private)  void BufferList.pin(Block blk)
          Pins the block and keeps track of the buffer internally.
 void Transaction.setInt(Block blk, int offset, int val)
          Stores an integer at the specified offset of the specified block.
 void Transaction.setString(Block blk, int offset, java.lang.String val)
          Stores a string at the specified offset of the specified block.
 void Transaction.unpin(Block blk)
          Unpins the specified block.
(package private)  void BufferList.unpin(Block blk)
          Unpins the specified block.
 

Uses of Block in simpledb.tx.concurrency
 

Methods in simpledb.tx.concurrency with parameters of type Block
 void LockTable.sLock(Block blk)
          Grants an SLock on the specified block.
 void ConcurrencyMgr.sLock(Block blk)
          Obtains an SLock on the block, if necessary.
(package private)  void LockTable.unlock(Block blk)
          Releases a lock on the specified block.
(package private)  void LockTable.xLock(Block blk)
          Grants an XLock on the specified block.
 void ConcurrencyMgr.xLock(Block blk)
          Obtains an XLock on the block, if necessary.
 

Uses of Block in simpledb.tx.recovery
 

Constructors in simpledb.tx.recovery with parameters of type Block
SetIntRecord(int txnum, Block blk, int offset, int val)
          Creates a new setint log record.
SetStringRecord(int txnum, Block blk, int offset, java.lang.String val)
          Creates a new setstring log record.