|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- key typeV
- value typepublic interface PrimaryHashMap<K,V>
Primary HashMap which persist data in storage.
Behavior is very similar to
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
java.util.HashMap/code>, this map also uses hash index to lookup keys
But it adds some methods to create secondary views
PrimaryStoreMap
or to minimalize size of index.
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, secondaryHashMapManyToOne, secondaryTreeMap, secondaryTreeMap, 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
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Cees de Groot (C) 2000. All rights reserved http://jdbm.sourceforge.net