Package org.apache.flink.table.utils
Class ThreadLocalCache<K,V>
- java.lang.Object
-
- org.apache.flink.table.utils.ThreadLocalCache<K,V>
-
@Internal public abstract class ThreadLocalCache<K,V> extends Object
Provides a thread local cache with a maximum cache size per thread.Note: Values must not be null.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ThreadLocalCache()
protected
ThreadLocalCache(int maxSizePerThread)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description V
get(K key)
abstract V
getNewInstance(K key)
static <K,V>
ThreadLocalCache<K,V>of(Function<K,V> creator)
-