| com.jofti.core.IStoreManager
All known Subclasses: com.jofti.store.AbstractStoreManager,
IStoreManager | public interface IStoreManager (Code) | | The store manager is responsible for mediating between the store implementations and
the the index.
After retrieving a page the caller SHOULD ensure they call either store, remove or release after finishing with a page. Failure to do so may well
have an impact on the performance of the store in being able to recycle pages.
author: xenephon since: Jofti 1.2 |
releasePage | public void releasePage(IStoreKey key, IPage obj)(Code) | | Called by the client to notify the manager that they have finished with the page.
Parameters: key - Parameters: obj - |
split | public EntrySplitWrapper[] split(IPage page, int entryNumber)(Code) | | Splits an IPage into two IPage objects with a fair distribution of entries. The EntrySplitWrapper
contains both the page and the number of entries in the page.
Parameters: page - Parameters: entryNumber - |
store | public IStoreKey store(IStoreKey key, IPage obj) throws JoftiException(Code) | |
Stores the page in the store. Any changes to the storekey are made in the return key object.
Parameters: key - - containing the locations to store the page under (possibly more than one) Parameters: obj - - the page to store. throws: JoftiException - - thrown if the key cannot be stored. |
|
|