Package com.linkedin.venice.utils
Interface IndexedMap<K,V>
- All Superinterfaces:
Map<K,
V>
The IndexedMap interface implements Map and several functions for dealing with its
content via the index corresponding to their insertion order. The concept is similar
to the LinkedHashMap, but affords the user a greater control over how the data is
laid out when iterating over it.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetByIndex
(int index) int
void
moveElement
(int originalIndex, int newIndex) putByIndex
(K key, V value, int index) removeByIndex
(int index) Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
indexOf
-
putByIndex
-
getByIndex
-
removeByIndex
-
moveElement
void moveElement(int originalIndex, int newIndex)
-