K - the key typeV - the value typepublic class ShardedMap<K,V>
extends java.util.AbstractMap<K,V>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ShardedMap.CountedMap<K,V>
A map that can efficiently return the index of a key, and the key at a
given index.
|
static interface |
ShardedMap.LargeMap
A large map.
|
| Constructor and Description |
|---|
ShardedMap() |
ShardedMap(DataType keyType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMap(java.util.Map<K,V> map,
K min,
K max)
Add the given shard.
|
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
V |
get(java.lang.Object key) |
V |
put(K key,
V value) |
int |
size() |
long |
sizeAsLong()
The size of the map.
|
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, toString, valuespublic ShardedMap()
public ShardedMap(DataType keyType)
public void addMap(java.util.Map<K,V> map, K min, K max)
map - the mapmin - the lowest key, or null if no limitmax - the highest key, or null if no limitpublic int size()
public long sizeAsLong()
public V get(java.lang.Object key)