Class ExpandingConcurrentMap<KEY,VALUE>
java.lang.Object
org.apache.drill.exec.planner.sql.ExpandingConcurrentMap<KEY,VALUE>
- Type Parameters:
KEY- The key in the map.VALUE- The value in the map.
- All Implemented Interfaces:
ConcurrentMap<KEY,,VALUE> Map<KEY,VALUE>
A special type of concurrent map which attempts to create an object before returning that it does not exist. It will also provide the same functionality on it's keyset.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new ExpandingConcurrentMap. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
-
Constructor Details
-
ExpandingConcurrentMap
Create a new ExpandingConcurrentMap.- Parameters:
fac- The object factory responsible for attempting to generate object instances.
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
alreadyContainsKey
-
containsKey
- Specified by:
containsKeyin interfaceMap<KEY,VALUE>
-
containsValue
- Specified by:
containsValuein interfaceMap<KEY,VALUE>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceConcurrentMap<KEY,VALUE> - Specified by:
putIfAbsentin interfaceMap<KEY,VALUE>
-
remove
-
replace
-
replace
-