|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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 Index.DataPage . |
Constructor Summary | |
---|---|
IndexPageCache(BigIndex index)
|
Method Summary | |
---|---|
IndexPageCache.CacheDataPage |
findCacheDataPage(Index.Entry e)
Finds the index page on which the given entry does or should reside. |
IndexPageCache.CacheDataPage |
getCacheDataPage(java.lang.Integer pageNumber)
Returns a CacheDataPage for the given page number, may be null if the given page
number is invalid. |
BigIndex |
getIndex()
|
PageChannel |
getPageChannel()
|
void |
setRootPageNumber(int pageNumber)
Sets the root page for this index, must be called before normal usage. |
java.lang.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(BigIndex index)
Method Detail |
---|
public BigIndex getIndex()
public PageChannel getPageChannel()
public void setRootPageNumber(int pageNumber) throws java.io.IOException
pageNumber
- the root page number
java.io.IOException
public void write() throws java.io.IOException
java.io.IOException
public IndexPageCache.CacheDataPage getCacheDataPage(java.lang.Integer pageNumber) throws java.io.IOException
null
if the given page
number is invalid. Loads the given page if necessary.
java.io.IOException
public IndexPageCache.CacheDataPage findCacheDataPage(Index.Entry e) throws java.io.IOException
e
- the entry to find
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |