|
||||||||||
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(java.lang.Object key)
|
void |
delete()
delete all state associated with the index |
StoreEntry |
get(java.lang.Object key)
|
int |
getSize()
return the size of the index |
boolean |
isTransient()
|
void |
load()
load indexes |
StoreEntry |
remove(java.lang.Object key)
remove the index key |
void |
setKeyMarshaller(Marshaller marshaller)
Set the marshaller for key objects |
void |
store(java.lang.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 Index
Index.clear()
public boolean containsKey(java.lang.Object key)
containsKey
in interface Index
key
-
Index.containsKey(java.lang.Object)
public StoreEntry remove(java.lang.Object key)
Index
remove
in interface Index
key
-
org.apache.activemq.kaha.impl.index.Index#removeKey(java.lang.Object)
public void store(java.lang.Object key, StoreEntry entry)
Index
store
in interface Index
key
- entry
- org.apache.activemq.kaha.impl.index.Index#store(java.lang.Object,
org.apache.activemq.kaha.impl.index.IndexItem)
public StoreEntry get(java.lang.Object key)
get
in interface Index
key
-
public boolean isTransient()
isTransient
in interface Index
isTransient
in interface IndexMBean
public void load()
load
in interface Index
public void unload()
unload
in interface Index
public void delete() throws java.io.IOException
Index
delete
in interface Index
java.io.IOException
public void setKeyMarshaller(Marshaller marshaller)
Index
setKeyMarshaller
in interface Index
public int getSize()
Index
getSize
in interface Index
getSize
in interface IndexMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |