|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.kaha.impl.index.VMIndex
public class VMIndex
Index implementation using a HashMap
| Constructor Summary | |
|---|---|
VMIndex(IndexManager manager)
|
|
| 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 |
getSize()
return the size of the index |
boolean |
isTransient()
|
void |
load()
load indexes |
StoreEntry |
remove(Object key)
remove the index key |
void |
setKeyMarshaller(Marshaller marshaller)
Set the marshaller for key objects |
void |
store(Object key,
StoreEntry entry)
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 VMIndex(IndexManager manager)
| Method Detail |
|---|
public void clear()
Index
clear in interface IndexIndex.clear()public boolean containsKey(Object key)
containsKey in interface Indexkey -
Index.containsKey(java.lang.Object)public StoreEntry remove(Object key)
Index
remove in interface Indexkey -
org.apache.activemq.kaha.impl.index.Index#removeKey(java.lang.Object)
public void store(Object key,
StoreEntry entry)
Index
store in interface Indexkey - entry - org.apache.activemq.kaha.impl.index.Index#store(java.lang.Object,
org.apache.activemq.kaha.impl.index.IndexItem)public StoreEntry get(Object key)
get in interface Indexkey -
public boolean isTransient()
isTransient in interface IndexisTransient in interface IndexMBeanpublic void load()
load in interface Indexpublic void unload()
unload in interface Index
public void delete()
throws IOException
Index
delete in interface IndexIOExceptionpublic void setKeyMarshaller(Marshaller marshaller)
Index
setKeyMarshaller in interface Indexpublic int getSize()
Index
getSize in interface IndexgetSize in interface IndexMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||