Package fr.gouv.vitam.worker.core.utils
Class FastValueAccessMap<K,V>
java.lang.Object
fr.gouv.vitam.worker.core.utils.FastValueAccessMap<K,V>
- All Implemented Interfaces:
Map<K,
V>
Deprecated.
Hacky implementation for HashMap with fast "containsKey" O(1) method. Refactoring existing code is too risky and requires a full rewrite of ExtractSedaActionHandler and ArchiveUnitListener classes. Entry values are stored in a dedicated Map of Key to Integer Counter that tracks the values and their reference count. Null values are wrapped over a NULL_VALUE_OBJ object because HashMap implementation does not support nulls are keys. Sorry for the inconvenience.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
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
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
FastValueAccessMap
public FastValueAccessMap()Deprecated.
-
-
Method Details
-
size
public int size()Deprecated. -
isEmpty
public boolean isEmpty()Deprecated. -
containsKey
Deprecated.- Specified by:
containsKey
in interfaceMap<K,
V>
-
containsValue
Deprecated.- Specified by:
containsValue
in interfaceMap<K,
V>
-
get
Deprecated. -
put
Deprecated. -
remove
Deprecated. -
putAll
Deprecated. -
clear
public void clear()Deprecated. -
keySet
Deprecated. -
values
Deprecated. -
entrySet
Deprecated.
-