Uses of Interface
org.apache.nifi.distributed.cache.client.Serializer
Packages that use Serializer
-
Uses of Serializer in org.apache.nifi.distributed.cache.client
Methods in org.apache.nifi.distributed.cache.client with parameters of type SerializerModifier and TypeMethodDescription<T> booleanDistributedSetCacheClient.addIfAbsent(T value, Serializer<T> serializer) Adds the specified value to the cache, serializing the value with the givenSerializer.<T> booleanDistributedSetCacheClient.contains(T value, Serializer<T> serializer) <K> booleanDistributedMapCacheClient.containsKey(K key, Serializer<K> keySerializer) Determines if the given value is present in the cache and if so returnstrue, else returnsfalse<K,V> AtomicCacheEntry <K, V, R> AtomicDistributedMapCacheClient.fetch(K key, Serializer<K> keySerializer, Deserializer<V> valueDeserializer) Fetch a CacheEntry with a key.<K,V> V DistributedMapCacheClient.get(K key, Serializer<K> keySerializer, Deserializer<V> valueDeserializer) Returns the value in the cache for the given key, if one exists; otherwise returnsnull<K,V> V DistributedMapCacheClient.getAndPutIfAbsent(K key, V value, Serializer<K> keySerializer, Serializer<V> valueSerializer, Deserializer<V> valueDeserializer) Adds the specified key and value to the cache, if they are not already present, serializing the key and value with the givenSerializers.<K,V> void DistributedMapCacheClient.put(K key, V value, Serializer<K> keySerializer, Serializer<V> valueSerializer) Adds the specified key and value to the cache, overwriting any value that is currently set.default <K,V> void DistributedMapCacheClient.putAll(Map<K, V> keysAndValues, Serializer<K> keySerializer, Serializer<V> valueSerializer) Performs a bulk put operation.<K,V> boolean DistributedMapCacheClient.putIfAbsent(K key, V value, Serializer<K> keySerializer, Serializer<V> valueSerializer) Adds the specified key and value to the cache, if they are not already present, serializing the key and value with the givenSerializers.<K> booleanDistributedMapCacheClient.remove(K key, Serializer<K> serializer) Removes the entry with the given key from the cache, if it is present.<T> booleanDistributedSetCacheClient.remove(T value, Serializer<T> serializer) Removes the given value from the cache, if it is present.default <K,V> V DistributedMapCacheClient.removeAndGet(K key, Serializer<K> keySerializer, Deserializer<V> valueDeserializer) Removes the entry with the given key from the cache, if it is present, and returns the value that was removed from the map.<K,V> boolean AtomicDistributedMapCacheClient.replace(AtomicCacheEntry<K, V, R> entry, Serializer<K> keySerializer, Serializer<V> valueSerializer) Replace an existing key with new value.default <K,V> Map <K, V> DistributedMapCacheClient.subMap(Set<K> keys, Serializer<K> keySerializer, Deserializer<V> valueDeserializer) Returns the values in the cache for the given keys, if they exist; otherwise returnsnull