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
Modifier and TypeClassDescriptionstatic interface
-
Constructor Summary
ConstructorDescriptionCreate a new ExpandingConcurrentMap. -
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.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:
containsKey
in interfaceMap<KEY,
VALUE>
-
containsValue
- Specified by:
containsValue
in interfaceMap<KEY,
VALUE>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceConcurrentMap<KEY,
VALUE> - Specified by:
putIfAbsent
in interfaceMap<KEY,
VALUE>
-
remove
-
replace
-
replace
-