public interface IMappedPage
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Persist any changes to disk
|
ByteBuffer |
getLocal(int position)
Get a thread local copy of the mapped page buffer
|
byte[] |
getLocal(int position,
int length)
Get data from a thread local copy of the mapped page buffer
|
String |
getPageFile()
The back page file name of the mapped page
|
long |
getPageIndex()
The index of the mapped page
|
boolean |
isClosed()
Check if this mapped page has been closed or not
|
boolean |
isNew()
Is the mapped page new or was it read from disk
|
void |
setDirty(boolean dirty)
Set if the mapped page has been changed or not
|
ByteBuffer getLocal(int position)
position - start position(relative to the start position of source mapped page buffer) of the thread local bufferbyte[] getLocal(int position,
int length)
position - start position(relative to the start position of source mapped page buffer) of the thread local bufferlength - the length to fetchboolean isClosed()
boolean isNew()
void setDirty(boolean dirty)
dirty - dirty flag to setString getPageFile()
long getPageIndex()
void flush()
Copyright © 2020. All rights reserved.