|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.kaha.impl.index.tree.TreeIndex
public class TreeIndex
BTree implementation
| Constructor Summary | |
|---|---|
TreeIndex(File directory,
String name,
IndexManager indexManager)
Constructor |
|
| Method Summary | |
|---|---|
void |
clear()
clear the index |
boolean |
containsKey(Object key)
|
void |
delete()
delete all state associated with the index |
StoreEntry |
get(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(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(Object key,
StoreEntry value)
store the key, item |
void |
unload()
unload indexes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeIndex(File directory,
String name,
IndexManager indexManager)
throws IOException
directory - name - indexManager -
IOException| Method Detail |
|---|
public 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 load()
Index
load in interface Index
public void unload()
throws IOException
Index
unload in interface IndexIOException
public void store(Object key,
StoreEntry value)
throws IOException
Index
store in interface IndexIOException
public StoreEntry get(Object key)
throws IOException
get in interface IndexIOException
public StoreEntry remove(Object key)
throws IOException
Index
remove in interface IndexIOException
public boolean containsKey(Object key)
throws IOException
containsKey in interface IndexIOException
public void clear()
throws IOException
Index
clear in interface IndexIOException
public void delete()
throws IOException
Index
delete in interface IndexIOException
protected void openIndexFile()
throws IOException
IOExceptionpublic int getSize()
Index
getSize in interface Index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||