Class SparseConcurrentListWithOffset<E>

java.lang.Object
java.util.concurrent.CopyOnWriteArrayList<E>
com.linkedin.venice.utils.SparseConcurrentList<E>
com.linkedin.venice.utils.SparseConcurrentListWithOffset<E>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess

public class SparseConcurrentListWithOffset<E> extends SparseConcurrentList<E>
A very simple subclass of SparseConcurrentList which adds some immutable offset to all index. Useful for cases where the list needs to contain negative indices. A more fancy version where the offset adjusts dynamically based on the indices it needs to contain would be interesting, but more complex. It would likely require starting from scratch, as the facilities provided by CopyOnWriteArrayList may be insufficient to achieve correct/efficient synchronization.
See Also: