Package com.illumon.iris.db.tables.libs
Class DbMap<K,V>
java.lang.Object
com.illumon.iris.db.tables.libs.DbMap<K,V>
- All Implemented Interfaces:
Externalizable,Serializable,Map<K,V>
- Direct Known Subclasses:
DbMapStringDouble,DbMapStringInt,DbMapStringLong,DbMapStringString
A map implementation optimized for DB use.
- See Also:
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleaninthashCode()booleanisEmpty()keySet()voidvoidprotected abstract KreadKey(ObjectInput in) protected abstract VreadValue(ObjectInput in) intsize()toString()values()voidprotected abstract voidwriteKey(ObjectOutput out, K key) protected abstract voidwriteValue(ObjectOutput out, V value) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
DbMap
protected DbMap(boolean sortedToString)
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
hashCode
public int hashCode() -
equals
-
toString
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeKey
- Throws:
IOException
-
readKey
- Throws:
IOException
-
writeValue
- Throws:
IOException
-
readValue
- Throws:
IOException
-