public class VMIndex extends Object implements Index, IndexMBean
Constructor and Description |
---|
VMIndex(IndexManager manager) |
Modifier and Type | Method and Description |
---|---|
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
|
public VMIndex(IndexManager manager)
public void clear()
Index
clear
in interface Index
Index.clear()
public boolean containsKey(Object key)
containsKey
in interface Index
key
- Index.containsKey(java.lang.Object)
public StoreEntry remove(Object key)
Index
public void store(Object key, StoreEntry entry)
Index
public StoreEntry get(Object key)
public boolean isTransient()
isTransient
in interface Index
isTransient
in interface IndexMBean
public void delete() throws IOException
Index
delete
in interface Index
IOException
public void setKeyMarshaller(Marshaller marshaller)
Index
setKeyMarshaller
in interface Index
Copyright © 2005–2014. All rights reserved.