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 TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
boolean
int
hashCode()
boolean
isEmpty()
keySet()
void
void
protected abstract K
readKey
(ObjectInput in) protected abstract V
readValue
(ObjectInput in) int
size()
toString()
values()
void
protected abstract void
writeKey
(ObjectOutput out, K key) protected abstract void
writeValue
(ObjectOutput out, V value) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
containsKey
in interfaceMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
hashCode
public int hashCode() -
equals
-
toString
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeKey
- Throws:
IOException
-
readKey
- Throws:
IOException
-
writeValue
- Throws:
IOException
-
readValue
- Throws:
IOException
-