Package alluxio.collections
Class TwoKeyConcurrentSortedMap<K1,K2,V,M extends java.util.SortedMap<K2,V>>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.concurrent.ConcurrentHashMap<K1,M>
-
- alluxio.collections.TwoKeyConcurrentMap<K1,K2,V,M>
-
- alluxio.collections.TwoKeyConcurrentSortedMap<K1,K2,V,M>
-
- Type Parameters:
K1
- the first key typeK2
- the second key typeV
- the value typeM
- the type for the inner sorted map
- All Implemented Interfaces:
java.io.Serializable
,java.util.concurrent.ConcurrentMap<K1,M>
,java.util.Map<K1,M>
public class TwoKeyConcurrentSortedMap<K1,K2,V,M extends java.util.SortedMap<K2,V>> extends TwoKeyConcurrentMap<K1,K2,V,M>
A two-level concurrent map implementation where the inner map is sorted. Concurrent usage is managed by the outer map. Users can supply the inner sorted map type of their choice.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class alluxio.collections.TwoKeyConcurrentMap
TwoKeyConcurrentMap.TriFunction<A,B,C,R>
-
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
java.util.concurrent.ConcurrentHashMap.KeySetView<K extends java.lang.Object,V extends java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description TwoKeyConcurrentSortedMap(java.util.function.Supplier<M> innerMapCreator)
-
Method Summary
-
Methods inherited from class alluxio.collections.TwoKeyConcurrentMap
addInnerValue, equals, flattenEntries, hashCode, removeInnerValue
-
Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
-
-
-
-
Constructor Detail
-
TwoKeyConcurrentSortedMap
public TwoKeyConcurrentSortedMap(java.util.function.Supplier<M> innerMapCreator)
- Parameters:
innerMapCreator
- supplier for the inner map type
-
-