org.apache.activemq.kaha.impl.index
Class RangeLimitedMap
java.lang.Object
org.apache.activemq.kaha.impl.index.RangeLimitedMap
- All Implemented Interfaces:
- java.util.Map
public class RangeLimitedMap
- extends java.lang.Object
- implements java.util.Map
A Map of keys and IndexItems - which is limited in size
- Version:
- $Revision: 1.2 $
| Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
RangeLimitedMap
public RangeLimitedMap(IndexLinkedList indexList,
DataManager keyDataManager,
Marshaller keyMarshaller)
- Parameters:
indexList - keyDataManager - keyMarshaller -
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey in interface java.util.Map
- Parameters:
key -
- Returns:
- See Also:
Map.containsKey(java.lang.Object)
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue in interface java.util.Map
- Parameters:
value -
- Returns:
- See Also:
Map.containsValue(java.lang.Object)
entrySet
public java.util.Set entrySet()
- Specified by:
entrySet in interface java.util.Map
- Returns:
- See Also:
Map.entrySet()
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
get in interface java.util.Map
- Parameters:
key -
- Returns:
- the value associated with the key
- See Also:
Map.get(java.lang.Object)
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface java.util.Map
- Returns:
- See Also:
Map.isEmpty()
keySet
public java.util.Set keySet()
- Specified by:
keySet in interface java.util.Map
- Returns:
- See Also:
Map.keySet()
put
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
- Specified by:
put in interface java.util.Map
- Parameters:
key - value -
- Returns:
- See Also:
Map.put(java.lang.Object, java.lang.Object)
putAll
public void putAll(java.util.Map t)
- Specified by:
putAll in interface java.util.Map
- Parameters:
t - - See Also:
Map.putAll(java.util.Map)
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
remove in interface java.util.Map
- Parameters:
key -
- Returns:
- See Also:
Map.remove(java.lang.Object)
size
public int size()
- Specified by:
size in interface java.util.Map
- Returns:
- See Also:
Map.size()
values
public java.util.Collection values()
- Specified by:
values in interface java.util.Map
- Returns:
- See Also:
Map.values()
getMaxRange
public int getMaxRange()
- Returns:
- the maxRange
setMaxRange
public void setMaxRange(int maxRange)
- Parameters:
maxRange - the maxRange to set
pageIntoMap
protected int pageIntoMap(IndexItem start)
- fill the internalMap
- Parameters:
start - numberOfItems -
- Returns:
- the actual number of items paged into the internalMap
clear
public void clear()
- Specified by:
clear in interface java.util.Map
- See Also:
Map.clear()
getIndexList
protected IndexLinkedList getIndexList()
- Returns:
- the indexList
getKey
protected java.lang.Object getKey(IndexItem item)
getNextEntry
protected IndexItem getNextEntry(IndexItem item)
Copyright © 2011 Apache Software Foundation. All Rights Reserved.