|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MapContainer<K,V>
Represents a container of persistent objects in the store Acts as a map, but values can be retrieved in insertion order
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Method Summary | |
|---|---|
void |
clear()
empty the container |
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object o)
|
void |
delete()
Clean up all state associated with this container. |
Set<Map.Entry<K,V>> |
entrySet()
|
V |
get(Object key)
Get the value associated with the key |
StoreEntry |
getEntry(K key)
Get the StoreEntry associated with the key |
StoreEntry |
getFirst()
Get the StoreEntry for the first value in the Map |
Object |
getId()
|
int |
getIndexBinSize()
|
int |
getIndexKeySize()
|
int |
getIndexLoadFactor()
|
int |
getIndexMaxBinSize()
|
IndexMBean |
getIndexMBean()
|
int |
getIndexPageSize()
|
K |
getKey(StoreEntry keyLocation)
Get the Key object from it's location |
StoreEntry |
getLast()
Get the StoreEntry for the last value item of the Map |
StoreEntry |
getNext(StoreEntry entry)
Get the next StoreEntry value from the map |
StoreEntry |
getPrevious(StoreEntry entry)
Get the previous StoreEntry from the map |
V |
getValue(StoreEntry valueLocation)
Get the value from it's location |
boolean |
isEmpty()
|
boolean |
isLoaded()
|
Set<K> |
keySet()
|
void |
load()
The container is created or retrieved in an unloaded state. |
StoreEntry |
place(K key,
V value)
Add an entry to the Store Map |
V |
put(K key,
V value)
Add an entry |
void |
putAll(Map<? extends K,? extends V> map)
Add add entries in the supplied Map |
StoreEntry |
refresh(StoreEntry entry)
It's possible that a StoreEntry could be come stale this will return an upto date entry for the StoreEntry position |
V |
remove(Object key)
remove an entry associated with the key |
void |
remove(StoreEntry entry)
Remove an Entry from ther Map |
void |
setIndexBinSize(int size)
Set the index bin size |
void |
setIndexKeySize(int size)
Add the index key size |
void |
setIndexLoadFactor(int loadFactor)
|
void |
setIndexMaxBinSize(int size)
set the meximum bin size |
void |
setIndexPageSize(int size)
Set the index page size |
void |
setKeyMarshaller(Marshaller<K> keyMarshaller)
For homogenous containers can set a custom marshaller for loading keys The default uses Object serialization |
void |
setValueMarshaller(Marshaller<V> valueMarshaller)
For homogenous containers can set a custom marshaller for loading values The default uses Object serialization |
int |
size()
|
void |
unload()
unload indexes from the container |
Collection<V> |
values()
|
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Method Detail |
|---|
void load()
void unload()
boolean isLoaded()
void setKeyMarshaller(Marshaller<K> keyMarshaller)
keyMarshaller - void setValueMarshaller(Marshaller<V> valueMarshaller)
valueMarshaller - Object getId()
int size()
size in interface Map<K,V>boolean isEmpty()
isEmpty in interface Map<K,V>boolean containsKey(Object key)
containsKey in interface Map<K,V>key -
V get(Object key)
get in interface Map<K,V>key -
boolean containsValue(Object o)
containsValue in interface Map<K,V>o -
void putAll(Map<? extends K,? extends V> map)
putAll in interface Map<K,V>map - Set<K> keySet()
keySet in interface Map<K,V>Collection<V> values()
values in interface Map<K,V>Set<Map.Entry<K,V>> entrySet()
entrySet in interface Map<K,V>
V put(K key,
V value)
put in interface Map<K,V>key - value -
V remove(Object key)
remove in interface Map<K,V>key -
void clear()
clear in interface Map<K,V>
StoreEntry place(K key,
V value)
key - Value -
void remove(StoreEntry entry)
entry - K getKey(StoreEntry keyLocation)
keyLocation -
V getValue(StoreEntry valueLocation)
Valuelocation -
StoreEntry getFirst()
StoreEntry getLast()
StoreEntry getNext(StoreEntry entry)
entry -
StoreEntry getPrevious(StoreEntry entry)
entry -
StoreEntry refresh(StoreEntry entry)
entry - old entry
StoreEntry getEntry(K key)
key -
void setIndexBinSize(int size)
size - int getIndexBinSize()
void setIndexKeySize(int size)
size - int getIndexKeySize()
void setIndexPageSize(int size)
size - int getIndexPageSize()
void setIndexMaxBinSize(int size)
int getIndexMaxBinSize()
int getIndexLoadFactor()
void setIndexLoadFactor(int loadFactor)
loadFactor - the loadFactor to setIndexMBean getIndexMBean()
void delete()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||