| Modifier and Type | Field and Description |
|---|---|
| private final TempBufferHolder | |
| private int | bufferModCount
the last "modification" count of the buffer that this holder observed. |
| private int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Forces any current page data to be disregarded (any |
| public ByteBuffer | Returns: the page for the current page number, reading as necessary, position and limit are unchangedReturns the page for the current page number, reading as necessary, position and limit are unchanged. |
| public int | |
| public void | invalidate()
Forces any current page data to be disregarded (any |
| public static TempPageHolder | newHolder(TempBufferHolder.
the type of reference desired for any create page buffers typeCreates a new TempPageHolder. |
| public void | possiblyInvalidate(int modifiedPageNumber, ByteBuffer modifiedBuffer)
Forces any current page data to be disregarded if it matches the given page number (any
|
| public ByteBuffer | withNewPage(PageChannel pageChannel)
Allocates a new buffer in the database (with undefined data) and returns a new empty buffer. |
| public ByteBuffer | Returns: the page for the new page number, reading as necessary, resets positionSets the current page number and returns that page |
| private ByteBuffer |
| buffer | back to summary |
|---|---|
| private final TempBufferHolder buffer | |
| bufferModCount | back to summary |
|---|---|
| private int bufferModCount the last "modification" count of the buffer that this holder observed. this is tracked so that the page data can be re-read if the underlying buffer has been discarded since the last page read | |
| pageNumber | back to summary |
|---|---|
| private int pageNumber | |
| TempPageHolder | back to summary |
|---|---|
| private TempPageHolder(TempBufferHolder. | |
| clear | back to summary |
|---|---|
| public void clear() Forces any current page data to be disregarded (any | |
| getPage | back to summary |
|---|---|
| public ByteBuffer getPage(PageChannel pageChannel) throws IOException Returns the page for the current page number, reading as necessary, position and limit are unchanged.
| |
| getPageNumber | back to summary |
|---|---|
| public int getPageNumber() Returns the currently set page number.
| |
| invalidate | back to summary |
|---|---|
| public void invalidate() Forces any current page data to be disregarded (any | |
| newHolder | back to summary |
|---|---|
| public static TempPageHolder newHolder(TempBufferHolder. Creates a new TempPageHolder.
| |
| possiblyInvalidate | back to summary |
|---|---|
| public void possiblyInvalidate(int modifiedPageNumber, ByteBuffer modifiedBuffer) Forces any current page data to be disregarded if it matches the given page number (any
| |
| withNewPage | back to summary |
|---|---|
| public ByteBuffer withNewPage(PageChannel pageChannel) throws IOException Allocates a new buffer in the database (with undefined data) and returns a new empty buffer. | |
| withPage | back to summary |
|---|---|
| public ByteBuffer withPage(PageChannel pageChannel, int newPageNumber) throws IOException Sets the current page number and returns that page
| |
| withPage | back to summary |
|---|---|
| private ByteBuffer withPage(PageChannel pageChannel, int newPageNumber, boolean rewind) throws IOException | |