public class MDAGMap<V> extends AbstractMap<String,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
MDAGMap() |
| Modifier and Type | Method and Description |
|---|---|
LinkedList<Map.Entry<String,V>> |
commonPrefixSearchWithValue(char[] key,
int begin)
前缀查询
|
LinkedList<Map.Entry<String,V>> |
commonPrefixSearchWithValue(String key)
前缀查询
|
Set<Map.Entry<String,V>> |
entrySet() |
V |
get(Object key) |
V |
get(String key) |
Set<String> |
keySet() |
V |
put(String key,
V value) |
void |
simplify()
进一步降低内存,提高查询速度
副作用是下次插入速度会变慢 |
void |
unSimplify() |
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, putAll, remove, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic LinkedList<Map.Entry<String,V>> commonPrefixSearchWithValue(char[] key, int begin)
key - begin - public LinkedList<Map.Entry<String,V>> commonPrefixSearchWithValue(String key)
key - public void simplify()
public void unSimplify()
Copyright © 2014–2021 码农场. All rights reserved.