![]() |
Quadcap Embeddable Database |
Inheritance diagram for com.quadcap.sql.file.Page:

Definition at line 47 of file Page.java.
Public Member Functions | |
| long | getPageNum () |
| Return this page's block number. | |
| void | decrRefCount () |
| An artifact of the Cacheable interface implemented by the Block class, we need to keep track of which objects are actually being used so unused objects can be flushed from the cache to make room for new objects. | |
| int | read (int pos, byte[] pbuf, int offset, int len) |
| Read a range of bytes from the page. | |
| int | write (int pos, byte[] pbuf, int offset, int len) |
| Write a range of bytes to the page. | |
| int | readInt (int pos) |
| Read an integer (4-byte) value from the page. | |
| void | writeInt (int pos, int val) |
| Write an integer (4-byte) value to the page. | |
| long | readLong (int pos) |
| Read an long (8-byte) value from the page. | |
| void | writeLong (int pos, long val) |
| Write an long (8-byte) value to the page. | |
| void | takeData (Page p) |
| Move the contents of the other page to this page, and zero out the other page. | |
| void | clear () |
| Zero this page. | |
|
|
Zero this page.
Implemented in com.quadcap.sql.file.Block, and com.quadcap.sql.file.SubPage. Referenced by com.quadcap.sql.file.SubPageManager.newPage(), and com.quadcap.sql.file.BlockAccess.resize(). |
|
|
An artifact of the Cacheable interface implemented by the Block class, we need to keep track of which objects are actually being used so unused objects can be flushed from the cache to make room for new objects. At some point, we can get rid of this in favor of weak references. Implemented in com.quadcap.sql.file.SubPage. Referenced by com.quadcap.sql.file.SubPageManager.allocateNewBlock(), com.quadcap.sql.file.SubPageManager.freePage(), com.quadcap.sql.file.BlockPath.getRefs(), com.quadcap.sql.file.BlockAccess.init(), com.quadcap.sql.file.SubPageManager.newPage(), com.quadcap.sql.file.BlockAccess.read(), com.quadcap.sql.file.BlockAccess.resize(), com.quadcap.sql.file.BlockPath.updatePath(), and com.quadcap.sql.file.BlockAccess.write(). |
|
|
Return this page's block number.
Implemented in com.quadcap.sql.file.Block, and com.quadcap.sql.file.SubPage. |
|
||||||||||||||||||||
|
Read a range of bytes from the page.
Implemented in com.quadcap.sql.file.Block, and com.quadcap.sql.file.SubPage. Referenced by com.quadcap.sql.file.SubPageManager.newPage(), com.quadcap.sql.file.BlockAccess.read(), com.quadcap.sql.file.BlockAccess.resize(), and com.quadcap.sql.file.SubPage.takeData(). |
|
|
Read an integer (4-byte) value from the page.
Implemented in com.quadcap.sql.file.Block, and com.quadcap.sql.file.SubPage. |
|
|
Read an long (8-byte) value from the page.
Implemented in com.quadcap.sql.file.Block, and com.quadcap.sql.file.SubPage. Referenced by com.quadcap.sql.file.SubPageManager.freePage(), com.quadcap.sql.file.BlockAccess.init(), com.quadcap.sql.file.SubPageManager.newPage(), and com.quadcap.sql.file.BlockAccess.resize(). |
|
|
Move the contents of the other page to this page, and zero out the other page.
Implemented in com.quadcap.sql.file.Block, and com.quadcap.sql.file.SubPage. |
|
||||||||||||||||||||
|
Write a range of bytes to the page.
Implemented in com.quadcap.sql.file.Block, and com.quadcap.sql.file.SubPage. Referenced by com.quadcap.sql.file.BlockAccess.resize(), com.quadcap.sql.file.SubPage.takeData(), and com.quadcap.sql.file.BlockAccess.write(). |
|
||||||||||||
|
Write an integer (4-byte) value to the page.
Implemented in com.quadcap.sql.file.Block, and com.quadcap.sql.file.SubPage. |
|
||||||||||||
|
Write an long (8-byte) value to the page.
Implemented in com.quadcap.sql.file.Block, and com.quadcap.sql.file.SubPage. Referenced by com.quadcap.sql.file.SubPageManager.allocateNewBlock(), com.quadcap.sql.file.SubPageManager.freePage(), com.quadcap.sql.file.BlockAccess.resize(), and com.quadcap.sql.file.BlockAccess.setBlockRef(). |