|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.healthmarketscience.jackcess.IndexPageCache
public class IndexPageCache
Manager of the index pages for a BigIndex.
Nested Class Summary | |
---|---|
static class |
IndexPageCache.CacheDataPage
IndexPageCache implementation of an Index IndexData.DataPage . |
Constructor Summary | |
---|---|
IndexPageCache(BigIndexData indexData)
|
Method Summary | |
---|---|
IndexPageCache.CacheDataPage |
findCacheDataPage(IndexData.Entry e)
Finds the index page on which the given entry does or should reside. |
IndexPageCache.CacheDataPage |
getCacheDataPage(Integer pageNumber)
Returns a CacheDataPage for the given page number, may be null if
the given page number is invalid. |
BigIndexData |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IndexPageCache(BigIndexData indexData)
Method Detail |
---|
public BigIndexData getIndexData()
public PageChannel getPageChannel()
public void setRootPageNumber(int pageNumber) throws IOException
pageNumber
- the root page number
IOException
public void write() throws IOException
IOException
public IndexPageCache.CacheDataPage getCacheDataPage(Integer pageNumber) throws IOException
null
if
the given page number is invalid. Loads the given page if necessary.
IOException
public IndexPageCache.CacheDataPage findCacheDataPage(IndexData.Entry e) throws IOException
e
- the entry to find
IOException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |