public interface PageManager
| Modifier and Type | Interface and Description |
|---|---|
static interface |
PageManager.PageId
PageId Interface
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the PageManager.
|
void |
deletePage(PageManager.PageId id)
Delete the page for the given page id.
|
PageManager.PageId |
pageIdFromBytes(byte[] buf, int start)
Create pageId from a byte representation in the byte buffer starting at 'start' index.
|
byte |
pageIdToBytes(PageManager.PageId pageid, byte[] buf, int start)
Write a byte representation of the PageId into the byte buffer starting at 'start' index.
|
int |
pageLength(PageManager.PageId id)
Gets the page length.
|
int |
readPage(PageManager.PageId id, byte[] buffer, int start)
Fill the buffer for the given page id.
|
PageManager.PageId |
writePage(byte[] buffer, int start, int length)
Writes/Stores a page.
|
PageManager.PageId |
writePage(PageManager.PageId id, byte[] buffer, int start, int length)
Updates a page for the given page id.
|
PageManager.PageId writePage(byte[] buffer, int start, int length)
buffer - - byte buffer containing a page to be stored.start - - start of the page in the buffer.length - - the length of the page.PageManager.PageId writePage(PageManager.PageId id, byte[] buffer, int start, int length)
id - - an Object containing the page Id.buffer - - byte buffer containing a page to be stored.start - - start of the page in the buffer.length - - the length of the page.int readPage(PageManager.PageId id, byte[] buffer, int start)
id - - an Object containing the page Id.buffer - - byte buffer containing a page to be stored.start - - start of the page in the buffer.void deletePage(PageManager.PageId id)
id - - an Object containing the page Id.int pageLength(PageManager.PageId id)
id - - an Object containing the page Id.void close()
byte pageIdToBytes(PageManager.PageId pageid, byte[] buf, int start)
pageId - - pageId to be converted to bytesbuf - - byte array to write intostart - - start indexPageManager.PageId pageIdFromBytes(byte[] buf, int start)
buf - - byte array to read fromstart - - start index