public class DartMap<V> extends DoubleArray implements Map<String,V>, ITrie<V>
| Constructor and Description |
|---|
DartMap() |
DartMap(List<String> keyList,
V[] valueArray) |
DartMap(TreeMap<String,V> map) |
| Modifier and Type | Method and Description |
|---|---|
int |
build(TreeMap<String,V> keyValueMap) |
void |
clear() |
ArrayList<Pair<String,V>> |
commonPrefixSearch(String key) |
ArrayList<Pair<String,V>> |
commonPrefixSearch(String key,
int offset,
int maxResults)
前缀查询
|
boolean |
containsKey(Object key) |
boolean |
containsKey(String key)
是否包含key
|
boolean |
containsValue(Object value) |
Set<Map.Entry<String,V>> |
entrySet() |
V |
get(char[] key) |
V |
get(Object key) |
V |
get(String key) |
V[] |
getValueArray(V[] a) |
boolean |
isEmpty() |
Set<String> |
keySet() |
boolean |
load(ByteArray byteArray,
V[] value) |
V |
put(String key,
V value) |
void |
putAll(Map<? extends String,? extends V> m) |
V |
remove(Object key) |
boolean |
save(DataOutputStream out) |
Collection<V> |
values() |
build, build, commonPrefixSearch, exactMatchSearch, exactMatchSearch, open, save, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll, sizepublic boolean containsKey(Object key)
containsKey in interface Map<String,V>public boolean containsKey(String key)
containsKey in interface ITrie<V>key - public boolean containsValue(Object value)
containsValue in interface Map<String,V>public boolean save(DataOutputStream out)
public V[] getValueArray(V[] a)
getValueArray in interface ITrie<V>public ArrayList<Pair<String,V>> commonPrefixSearch(String key, int offset, int maxResults)
key - offset - maxResults - Copyright © 2014–2021 码农场. All rights reserved.