public class MemoryNavigableLRUCache<K,V> extends MemoryLRUCache<K,V>
MemoryLRUCache.EldestEntryRemovalListener<K,V>
map
Constructor and Description |
---|
MemoryNavigableLRUCache(java.lang.String name,
int maxCacheSize,
org.apache.kafka.common.serialization.Serde<K> keySerde,
org.apache.kafka.common.serialization.Serde<V> valueSerde) |
Modifier and Type | Method and Description |
---|---|
KeyValueIterator<K,V> |
all()
Return an iterator over all keys in this store.
|
KeyValueIterator<K,V> |
range(K from,
K to)
Get an iterator over a given range of keys.
|
approximateNumEntries, close, delete, flush, get, init, isOpen, name, persistent, put, putAll, putIfAbsent, size
public KeyValueIterator<K,V> range(K from, K to)
ReadOnlyKeyValueStore
ConcurrentModificationException
s
and must not return null values. No ordering guarantees are provided.range
in interface ReadOnlyKeyValueStore<K,V>
range
in class MemoryLRUCache<K,V>
from
- The first key that could be in the rangeto
- The last key that could be in the rangepublic KeyValueIterator<K,V> all()
ReadOnlyKeyValueStore
ConcurrentModificationException
s
and must not return null values. No ordering guarantees are provided.all
in interface ReadOnlyKeyValueStore<K,V>
all
in class MemoryLRUCache<K,V>