public class IndexPageCache extends Object
| Constructor and Description |
|---|
IndexPageCache(IndexData indexData) |
| Modifier and Type | Method and Description |
|---|---|
com.healthmarketscience.jackcess.impl.IndexPageCache.CacheDataPage |
findCacheDataPage(IndexData.Entry e)
Finds the index page on which the given entry does or should reside.
|
com.healthmarketscience.jackcess.impl.IndexPageCache.CacheDataPage |
getCacheDataPage(Integer pageNumber)
Returns a CacheDataPage for the given page number, may be
null if
the given page number is invalid. |
IndexData |
getIndexData() |
PageChannel |
getPageChannel() |
void |
setRootPageNumber(int pageNumber)
Sets the root page for this index, must be called before normal usage.
|
String |
toString() |
void |
write()
Writes any outstanding changes for this index to the file.
|
public IndexPageCache(IndexData indexData)
public IndexData getIndexData()
public PageChannel getPageChannel()
public void setRootPageNumber(int pageNumber)
throws IOException
pageNumber - the root page numberIOExceptionpublic void write()
throws IOException
IOExceptionpublic com.healthmarketscience.jackcess.impl.IndexPageCache.CacheDataPage getCacheDataPage(Integer pageNumber) throws IOException
null if
the given page number is invalid. Loads the given page if necessary.IOExceptionpublic com.healthmarketscience.jackcess.impl.IndexPageCache.CacheDataPage findCacheDataPage(IndexData.Entry e) throws IOException
e - the entry to findIOExceptionCopyright © 2005–2025 OpenHMS. All rights reserved.