Class BiIntKeyCache<E>
- java.lang.Object
-
- com.linkedin.venice.utils.collections.BiIntKeyCache<E>
-
public class BiIntKeyCache<E> extends java.lang.Object
Read-through cache for items retrievable by two positive integer IDs. N.B.: This class uses a list of lists internally. Therefore, the memory footprint will be proportional to the highest integer ID used. As such, this class should only be used in cases where the range of valid IDs goes from zero to a low max.
-
-
Constructor Summary
Constructors Constructor Description BiIntKeyCache(BiIntFunction<E> generator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
get(int firstId, int secondId)
-
-
-
Constructor Detail
-
BiIntKeyCache
public BiIntKeyCache(BiIntFunction<E> generator)
-
-
Method Detail
-
get
public E get(int firstId, int secondId)
- Returns:
- the element corresponding to the two int provided
-
-