Package org.apache.flink.runtime.util
Class DualKeyLinkedMap<A,B,V>
java.lang.Object
org.apache.flink.runtime.util.DualKeyLinkedMap<A,B,V>
- Type Parameters:
A- Type of key A. Key A is the primary key.B- Type of key B. Key B is the secondary key.V- Type of the value
Map which stores values under two different indices. The mapping of the primary key to the value
is backed by
LinkedHashMap so that the iteration order over the values and the primary
key set is the insertion order. Note that the insertion order is not affected if a primary key is
re-inserted into the map. Also note that there is no contract of the iteration order over the
secondary key set.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKeyA(A aKey) booleancontainsKeyB(B bKey) getKeyAByKeyB(B bKey) getKeyBByKeyA(A aKey) getValueByKeyA(A aKey) getValueByKeyB(B bKey) keySetA()keySetB()removeKeyA(A aKey) removeKeyB(B bKey) intsize()values()
-
Constructor Details
-
DualKeyLinkedMap
public DualKeyLinkedMap()
-
-
Method Details
-
size
public int size() -
getValueByKeyA
-
getValueByKeyB
-
getKeyAByKeyB
-
getKeyBByKeyA
-
put
-
containsKeyA
-
containsKeyB
-
removeKeyA
-
removeKeyB
-
values
-
keySetA
-
keySetB
-
clear
public void clear()
-