public class NPageStoreMem extends Object implements NPageStore
| Constructor and Description |
|---|
NPageStoreMem(int pageSize) |
| Modifier and Type | Method and Description |
|---|---|
long |
allocatePage() |
void |
close() |
void |
flush() |
void |
freePage(long pageId) |
long |
getUserData(int index) |
int |
pageSize() |
void |
readPage(long pageId,
ByteBuffer buffer) |
void |
setUserData(int index,
long value) |
void |
writePage(long pageId,
ByteBuffer buffer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofFile, ofFile, ofInMemory, ofInMemorypublic int pageSize()
pageSize in interface NPageStorepublic long allocatePage()
throws IOException
allocatePage in interface NPageStoreIOExceptionpublic void readPage(long pageId,
ByteBuffer buffer)
throws IOException
readPage in interface NPageStoreIOExceptionpublic void writePage(long pageId,
ByteBuffer buffer)
throws IOException
writePage in interface NPageStoreIOExceptionpublic void freePage(long pageId)
throws IOException
freePage in interface NPageStoreIOExceptionpublic long getUserData(int index)
getUserData in interface NPageStorepublic void setUserData(int index,
long value)
setUserData in interface NPageStorepublic void flush()
throws IOException
flush in interface NPageStoreIOExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface NPageStoreIOExceptionCopyright © 2026 vpc open source initiative. All rights reserved.