Package org.h2.store.fs.niomem
Class FileNioMemData.CompressLaterCache<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<K,V>
-
- org.h2.store.fs.niomem.FileNioMemData.CompressLaterCache<K,V>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<K,V>
- Enclosing class:
- FileNioMemData
static class FileNioMemData.CompressLaterCache<K,V> extends java.util.LinkedHashMap<K,V>This small cache compresses the data if an element leaves the cache.
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDprivate intsize
-
Constructor Summary
Constructors Constructor Description CompressLaterCache(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vput(K key, V value)protected booleanremoveEldestEntry(java.util.Map.Entry<K,V> eldest)voidsetCacheSize(int size)-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
size
private int size
-
-