| Constructor and Description |
|---|
TreeIndex(java.io.File directory,
java.lang.String name,
IndexManager indexManager)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
clear the index
|
boolean |
containsKey(java.lang.Object key) |
void |
delete()
delete all state associated with the index
|
StoreEntry |
get(java.lang.Object key) |
int |
getKeySize() |
int |
getPageCacheSize() |
int |
getPageSize() |
int |
getSize()
return the size of the index
|
boolean |
isEnablePageCaching() |
boolean |
isTransient() |
void |
load()
load indexes
|
protected void |
openIndexFile() |
StoreEntry |
remove(java.lang.Object key)
remove the index key
|
void |
setEnablePageCaching(boolean enablePageCaching) |
void |
setKeyMarshaller(Marshaller marshaller)
Set the marshaller for key objects
|
void |
setKeySize(int keySize) |
void |
setPageCacheSize(int pageCacheSize) |
void |
setPageSize(int pageSize) |
void |
store(java.lang.Object key,
StoreEntry value)
store the key, item
|
void |
unload()
unload indexes
|
public TreeIndex(java.io.File directory, java.lang.String name, IndexManager indexManager) throws java.io.IOException
directory - name - indexManager - java.io.IOExceptionpublic void setKeyMarshaller(Marshaller marshaller)
setKeyMarshaller in interface Indexmarshaller - public int getKeySize()
public void setKeySize(int keySize)
keySize - the keySize to setpublic int getPageSize()
public void setPageSize(int pageSize)
pageSize - the pageSize to setpublic boolean isTransient()
isTransient in interface Indexpublic boolean isEnablePageCaching()
public void setEnablePageCaching(boolean enablePageCaching)
enablePageCaching - the enablePageCaching to setpublic int getPageCacheSize()
public void setPageCacheSize(int pageCacheSize)
pageCacheSize - the pageCacheSize to setpublic void unload() throws java.io.IOException
Indexpublic void store(java.lang.Object key, StoreEntry value) throws java.io.IOException
Indexpublic StoreEntry get(java.lang.Object key) throws java.io.IOException
public StoreEntry remove(java.lang.Object key) throws java.io.IOException
Indexpublic boolean containsKey(java.lang.Object key) throws java.io.IOException
containsKey in interface Indexjava.io.IOExceptionpublic void clear() throws java.io.IOException
Indexpublic void delete() throws java.io.IOException
Indexprotected void openIndexFile() throws java.io.IOException
java.io.IOExceptionCopyright © 2005-2012. All Rights Reserved.