|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.excalibur.store.impl.AbstractReadWriteStore
org.apache.excalibur.store.impl.AbstractJispFilesystemStore
This store is based on the Jisp library (http://www.coyotegulch.com/jisp/index.html). This store uses B-Tree indexes to access variable-length serialized data stored in files.
| Field Summary | |
protected com.coyotegulch.jisp.IndexedObjectDatabase |
m_Database
The database |
protected java.io.File |
m_directoryFile
The directory repository |
protected com.coyotegulch.jisp.BTreeIndex |
m_Index
And the index |
| Fields inherited from class org.apache.excalibur.store.impl.AbstractReadWriteStore |
lock |
| Fields inherited from interface org.apache.excalibur.store.Store |
PERSISTENT_STORE, ROLE, TRANSIENT_STORE |
| Constructor Summary | |
AbstractJispFilesystemStore()
|
|
| Method Summary | |
protected void |
doClear()
Clear the Store of all elements |
protected boolean |
doContainsKey(java.lang.Object key)
Test if the the index file contains the given key |
protected void |
doFree()
Try to free some used memory. |
protected java.lang.Object |
doGet(java.lang.Object key)
Returns a Object from the store associated with the Key Object |
protected java.util.Enumeration |
doGetKeys()
Returns a Enumeration of all Keys in the indexed file. |
protected int |
doGetSize()
Returns count of the objects in the store, or -1 if could not be obtained. |
protected void |
doRemove(java.lang.Object key)
Removes a value from the data file with the given key. |
protected void |
doStore(java.lang.Object key,
java.lang.Object value)
Store the given object in the indexed data file. |
void |
free()
Frees some values of the data file. TODO: implementation |
protected com.coyotegulch.jisp.KeyObject |
getNullKey()
Return the Null JispKey |
void |
setDirectory(java.io.File directory)
Sets the repository's location |
protected com.coyotegulch.jisp.KeyObject |
wrapKeyObject(java.lang.Object key)
This method wraps around the key Object a Jisp KeyObject. |
| Methods inherited from class org.apache.excalibur.store.impl.AbstractReadWriteStore |
clear, containsKey, get, getChildInstrumentables, getInstrumentableName, getInstruments, keys, remove, setInstrumentableName, size, store |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.excalibur.store.Store |
clear, containsKey, get, keys, remove, size, store |
| Field Detail |
protected java.io.File m_directoryFile
protected com.coyotegulch.jisp.IndexedObjectDatabase m_Database
protected com.coyotegulch.jisp.BTreeIndex m_Index
| Constructor Detail |
public AbstractJispFilesystemStore()
| Method Detail |
public void setDirectory(java.io.File directory)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.Object doGet(java.lang.Object key)
doGet in class AbstractReadWriteStorekey - the Key object
protected void doStore(java.lang.Object key,
java.lang.Object value)
throws java.io.IOException
doStore in class AbstractReadWriteStorekey - the key objectvalue - the value object
java.io.IOExceptionpublic void free()
free in interface Storefree in class AbstractReadWriteStoreprotected void doFree()
AbstractReadWriteStore
doFree in class AbstractReadWriteStoreprotected void doClear()
doClear in class AbstractReadWriteStoreprotected void doRemove(java.lang.Object key)
doRemove in class AbstractReadWriteStorekey - the key objectprotected boolean doContainsKey(java.lang.Object key)
doContainsKey in class AbstractReadWriteStorekey - the key object
protected java.util.Enumeration doGetKeys()
doGetKeys in class AbstractReadWriteStoreprotected int doGetSize()
AbstractReadWriteStore
doGetSize in class AbstractReadWriteStoreprotected com.coyotegulch.jisp.KeyObject wrapKeyObject(java.lang.Object key)
key - the key object
protected com.coyotegulch.jisp.KeyObject getNullKey()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||