Package org.ujmp.core.collections.map
Class AbstractDiskMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.ujmp.core.collections.map.AbstractMap<K,V>
org.ujmp.core.collections.map.AbstractDiskMap<K,V>
- All Implemented Interfaces:
Serializable
,Map<K,
,V> Erasable
- Direct Known Subclasses:
SerializedObjectMap
,TextMap
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private File
private static final long
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
clear()
final boolean
containsKey
(Object key) final void
erase()
final V
private final File
private K
getKeyForFile
(File file) final File
getPath()
keySet()
private void
listFilesToSet
(File path, Set<K> set) final V
abstract V
readValue
(InputStream is) final V
final void
final int
size()
abstract void
writeValue
(OutputStream os, V value) Methods inherited from class org.ujmp.core.collections.map.AbstractMap
beforeReadObject, beforeWriteObject, containsValue, entrySet, get, getAsString, isEmpty, putAll, toString, values
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
path
-
useGZip
private boolean useGZip -
maxDepth
private int maxDepth
-
-
Constructor Details
-
AbstractDiskMap
- Throws:
IOException
-
-
Method Details
-
getPath
-
size
public final int size() -
getFileNameForKey
- Throws:
IOException
-
remove
-
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V> - Overrides:
containsKey
in classAbstractMap<K,
V>
-
keySet
-
listFilesToSet
- Throws:
ClassNotFoundException
IOException
-
getKeyForFile
- Throws:
ClassNotFoundException
IOException
-
clear
public final void clear() -
erase
- Specified by:
erase
in interfaceErasable
- Throws:
IOException
-
setPath
-
put
-
get
-
writeValue
-
readValue
-