public abstract class AbstractJispFilesystemStore extends AbstractReadWriteStore
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
AbstractJispFilesystemStore.BTreeObjectEnumeration |
| Modifier and Type | Field and Description |
|---|---|
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
|
lockPERSISTENT_STORE, ROLE, TRANSIENT_STORE| Constructor and Description |
|---|
AbstractJispFilesystemStore() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
clear, containsKey, get, getChildInstrumentables, getInstrumentableName, getInstruments, keys, remove, setInstrumentableName, size, storeprotected java.io.File m_directoryFile
protected com.coyotegulch.jisp.IndexedObjectDatabase m_Database
protected com.coyotegulch.jisp.BTreeIndex m_Index
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 objectprotected void doStore(java.lang.Object key,
java.lang.Object value)
throws java.io.IOException
doStore in class AbstractReadWriteStorekey - the key objectvalue - the value objectjava.io.IOExceptionpublic void free()
free in interface Storefree in class AbstractReadWriteStoreprotected void doFree()
AbstractReadWriteStoredoFree 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 objectprotected java.util.Enumeration doGetKeys()
doGetKeys in class AbstractReadWriteStoreprotected int doGetSize()
AbstractReadWriteStoredoGetSize in class AbstractReadWriteStoreprotected com.coyotegulch.jisp.KeyObject wrapKeyObject(java.lang.Object key)
key - the key objectprotected com.coyotegulch.jisp.KeyObject getNullKey()