|
||||||||||
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 |
---|
java.util.Map.Entry<K,V> |
Method Summary | |
---|---|
void |
clear()
empty the container |
boolean |
containsKey(K key)
|
boolean |
containsValue(K o)
|
void |
delete()
Clean up all state associated with this container. |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet()
|
V |
get(K 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 |
java.lang.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()
|
java.util.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(java.util.Map<K,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(K 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 |
java.util.Collection<V> |
values()
|
Methods inherited from interface java.util.Map |
---|
containsKey, containsValue, equals, get, hashCode, putAll, remove |
Method Detail |
---|
void load()
void unload()
boolean isLoaded()
void setKeyMarshaller(Marshaller<K> keyMarshaller)
keyMarshaller
- void setValueMarshaller(Marshaller<V> valueMarshaller)
valueMarshaller
- java.lang.Object getId()
int size()
size
in interface java.util.Map<K,V>
boolean isEmpty()
isEmpty
in interface java.util.Map<K,V>
boolean containsKey(K key)
key
-
V get(K key)
key
-
boolean containsValue(K o)
o
-
void putAll(java.util.Map<K,V> map)
map
- java.util.Set<K> keySet()
keySet
in interface java.util.Map<K,V>
java.util.Collection<V> values()
values
in interface java.util.Map<K,V>
java.util.Set<java.util.Map.Entry<K,V>> entrySet()
entrySet
in interface java.util.Map<K,V>
V put(K key, V value)
put
in interface java.util.Map<K,V>
key
- value
-
V remove(K key)
key
-
void clear()
clear
in interface java.util.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 |