Package com.clickhouse.data
Class ClickHouseFreezableMap<K,V>
java.lang.Object
com.clickhouse.data.ClickHouseFreezableMap<K,V>
- All Implemented Interfaces:
Map<K,V>
Deprecated.
Freezable map. Once the map is freezed, all writes will be discarded without
any error.
-
Nested Class Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClickHouseFreezableMap(Map<K, V> map, K... keys) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Deprecated.booleancontainsKey(Object key) Deprecated.booleancontainsValue(Object value) Deprecated.entrySet()Deprecated.freeze()Deprecated.Freezes the map to discard write operations.Deprecated.booleanisEmpty()Deprecated.booleanDeprecated.Checks whether the map is freezed or not.protected booleanDeprecated.Checks whether the given key can be used in mutation(e.g.booleanisWhiteListed(K key) Deprecated.Checks whether the given key is whitelisted, meaning corresponding entry can be changed even the map is freezed.keySet()Deprecated.static <K,V> ClickHouseFreezableMap<K, V> Deprecated.Creates a freezable map with initial data and optional whitelisted keys.Deprecated.voidDeprecated.Deprecated.intsize()Deprecated.unfreeze()Deprecated.Unfreezes the map to accept write operations.values()Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
ClickHouseFreezableMap
Deprecated.
-
-
Method Details
-
of
Deprecated.Creates a freezable map with initial data and optional whitelisted keys.- Type Parameters:
K- type of the keyV- type of the value- Parameters:
map- non-null map with initial datawhiteListedKeys- optional whitelisted keys- Returns:
- non-null freezable map
-
isMutable
Deprecated.Checks whether the given key can be used in mutation(e.g.put(),remove()), regardless the map is freezed or not.- Parameters:
key- non-null key- Returns:
- true if the given key can be used in mutation; false otherwise
-
clear
public void clear()Deprecated. -
containsKey
Deprecated.- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
Deprecated.- Specified by:
containsValuein interfaceMap<K,V>
-
entrySet
Deprecated. -
get
Deprecated. -
isEmpty
public boolean isEmpty()Deprecated. -
keySet
Deprecated. -
put
Deprecated. -
putAll
Deprecated. -
remove
Deprecated. -
size
public int size()Deprecated. -
values
Deprecated. -
freeze
Deprecated.Freezes the map to discard write operations.- Returns:
- this map
-
unfreeze
Deprecated.Unfreezes the map to accept write operations.- Returns:
- this map
-
isFreezed
public boolean isFreezed()Deprecated.Checks whether the map is freezed or not.- Returns:
- true if the map is freezed; false otherwise
-
isWhiteListed
Deprecated.Checks whether the given key is whitelisted, meaning corresponding entry can be changed even the map is freezed.- Parameters:
key- non-null key- Returns:
- true if the key is whitelisted; false otherwise
-