Class CopyOnWriteArrayMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
org.apache.hadoop.hbase.types.CopyOnWriteArrayMap<K,V>
All Implemented Interfaces:
ConcurrentMap<K,V>, ConcurrentNavigableMap<K,V>, Map<K,V>, NavigableMap<K,V>, SortedMap<K,V>

@Private @Stable public class CopyOnWriteArrayMap<K,V> extends AbstractMap<K,V> implements Map<K,V>, ConcurrentNavigableMap<K,V>
A Map that keeps a sorted array in order to provide the concurrent map interface. Keeping a sorted array means that it's much more cache line friendly, making reads faster than the tree version. In order to make concurrent reads and writes safe this does a copy on write. There can only be one concurrent write at a time.