|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.tx.BufferList
class BufferList
Manages the transaction's currently-pinned buffers.
Constructor Summary | |
---|---|
BufferList()
|
Method Summary | |
---|---|
(package private) Buffer |
getBuffer(Block blk)
Returns the buffer pinned to the specified block. |
(package private) void |
pin(Block blk)
Pins the block and keeps track of the buffer internally. |
(package private) Block |
pinNew(java.lang.String filename,
PageFormatter fmtr)
Appends a new block to the specified file and pins it. |
(package private) void |
unpin(Block blk)
Unpins the specified block. |
(package private) void |
unpinAll()
Unpins any buffers still pinned by this transaction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
BufferList()
Method Detail |
---|
Buffer getBuffer(Block blk)
blk
- a reference to the disk block
void pin(Block blk)
blk
- a reference to the disk blockBlock pinNew(java.lang.String filename, PageFormatter fmtr)
filename
- the name of the filefmtr
- the formatter used to initialize the new page
void unpin(Block blk)
blk
- a reference to the disk blockvoid unpinAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |