Class LRUCache<K,T>
- java.lang.Object
-
- org.apache.iotdb.tsfile.common.cache.LRUCache<K,T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLRUCache(int cacheSize)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclear()Tget(K key)protected abstract TloadObjectByKey(K key)voidput(K key, T value)voidremoveItem(K key)
-
-
-
Method Detail
-
get
public T get(K key) throws IOException
- Specified by:
getin interfaceCache<K,T>- Throws:
IOException
-
loadObjectByKey
protected abstract T loadObjectByKey(K key) throws IOException
- Throws:
IOException
-
removeItem
public void removeItem(K key)
-
-