Class MemoryBasedLogMinerCache<K,V>
java.lang.Object
io.debezium.connector.oracle.logminer.processor.memory.MemoryBasedLogMinerCache<K,V>
- All Implemented Interfaces:
LogMinerCache<K,V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.debezium.connector.oracle.logminer.processor.LogMinerCache
LogMinerCache.Entry<K,V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear all keys/values from the cache.booleancontainsKey(K key) Returns true if the cache contains the given key.voidConsume a Stream of all the entries in the cache.voidforEach(BiConsumer<K, V> action) Retrieve the value for the given key.booleanisEmpty()Returns true if the cache is empty.voidAdd the key and value into the cache.Remove the given key from the cache and return the value that was associated with it.voidremoveIf(Predicate<LogMinerCache.Entry<K, V>> predicate) Remove all keys/values from the cache when thePredicatereturns true;intsize()Returns the size of the cache.<T> TstreamAndReturn(Function<Stream<LogMinerCache.Entry<K, V>>, T> function) Apply the given function to the provided stream and return the result from the function.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.debezium.connector.oracle.logminer.processor.LogMinerCache
keys, values
-
Field Details
-
map
-
-
Constructor Details
-
MemoryBasedLogMinerCache
public MemoryBasedLogMinerCache()
-
-
Method Details
-
clear
public void clear()Description copied from interface:LogMinerCacheClear all keys/values from the cache.- Specified by:
clearin interfaceLogMinerCache<K,V>
-
size
public int size()Description copied from interface:LogMinerCacheReturns the size of the cache.- Specified by:
sizein interfaceLogMinerCache<K,V>
-
isEmpty
public boolean isEmpty()Description copied from interface:LogMinerCacheReturns true if the cache is empty.- Specified by:
isEmptyin interfaceLogMinerCache<K,V>
-
containsKey
Description copied from interface:LogMinerCacheReturns true if the cache contains the given key.- Specified by:
containsKeyin interfaceLogMinerCache<K,V>
-
remove
Description copied from interface:LogMinerCacheRemove the given key from the cache and return the value that was associated with it.- Specified by:
removein interfaceLogMinerCache<K,V>
-
get
Description copied from interface:LogMinerCacheRetrieve the value for the given key.- Specified by:
getin interfaceLogMinerCache<K,V>
-
put
Description copied from interface:LogMinerCacheAdd the key and value into the cache.- Specified by:
putin interfaceLogMinerCache<K,V>
-
forEach
- Specified by:
forEachin interfaceLogMinerCache<K,V>
-
removeIf
Description copied from interface:LogMinerCacheRemove all keys/values from the cache when thePredicatereturns true;- Specified by:
removeIfin interfaceLogMinerCache<K,V>
-
entries
Description copied from interface:LogMinerCacheConsume a Stream of all the entries in the cache.- Specified by:
entriesin interfaceLogMinerCache<K,V> - Parameters:
streamConsumer-
-
streamAndReturn
Description copied from interface:LogMinerCacheApply the given function to the provided stream and return the result from the function.- Specified by:
streamAndReturnin interfaceLogMinerCache<K,V>
-