jdbm
Interface PrimaryHashMap<K,V>

Type Parameters:
K - key type
V - value type
All Superinterfaces:
JdbmBase<K,V>, java.util.Map<K,V>, PrimaryMap<K,V>
All Known Implementing Classes:
AbstractPrimaryMap, BTreeSecondarySortedMap, BTreeSortedMap, HTreeMap, HTreeSecondaryMap, PrimaryStoreMapImpl

public interface PrimaryHashMap<K,V>
extends PrimaryMap<K,V>

Primary HashMap which persist data in storage. Behavior is very similar to java.util.HashMap/code>, this map also uses hash index to lookup keys But it adds some methods to create secondary views

Performance note: keys and values are stored as part of index nodes. They are deserialized on each index lookup. This may lead to performance degradation and OutOfMemoryExceptions. If your values are big (>500 bytes) you may consider using PrimaryStoreMap or to minimalize size of index.

Author:
Jan Kotek

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Method Summary
 
Methods inherited from interface jdbm.PrimaryMap
inverseHashView, secondaryHashMap, secondaryHashMap, secondaryHashMapManyToOne, secondaryHashMapManyToOne, secondaryTreeMap, secondaryTreeMap, secondaryTreeMap, secondaryTreeMap, secondaryTreeMapManyToOne, secondaryTreeMapManyToOne, secondaryTreeMapManyToOne, secondaryTreeMapManyToOne
 
Methods inherited from interface jdbm.helper.JdbmBase
addRecordListener, find, getRecordManager, removeRecordListener
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 



Cees de Groot (C) 2000. All rights reserved http://jdbm.sourceforge.net