public interface MapContainer<K,V> extends Map<K,V>
Modifier and Type | Method and Description |
---|---|
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() |
void load()
void unload()
boolean isLoaded()
void setKeyMarshaller(Marshaller<K> keyMarshaller)
keyMarshaller
- void setValueMarshaller(Marshaller<V> valueMarshaller)
valueMarshaller
- Object getId()
int size()
boolean isEmpty()
boolean containsKey(Object key)
containsKey
in interface Map<K,V>
key
- boolean containsValue(Object o)
containsValue
in interface Map<K,V>
o
- Collection<V> values()
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 entryStoreEntry 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()
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.