Class BinSearchResourceCache
java.lang.Object
org.aksw.commons.io.hadoop.binseach.v2.BinSearchResourceCache
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Supplier<org.aksw.commons.io.hadoop.binseach.v2.BinSearchResourceCache.CacheEntry>Factory for the caches of individual resources.protected com.github.benmanes.caffeine.cache.Cache<Object,org.aksw.commons.io.hadoop.binseach.v2.BinSearchResourceCache.CacheEntry> -
Constructor Summary
ConstructorsConstructorDescriptionBinSearchResourceCache(int maxCacheSize) BinSearchResourceCache(com.github.benmanes.caffeine.cache.Cache<Object, org.aksw.commons.io.hadoop.binseach.v2.BinSearchResourceCache.CacheEntry> resourceCache, Supplier<org.aksw.commons.io.hadoop.binseach.v2.BinSearchResourceCache.CacheEntry> cacheFactory) -
Method Summary
Modifier and TypeMethodDescriptionorg.aksw.commons.io.hadoop.binseach.v2.BinSearchResourceCache.CacheEntrygetOrCreate(Object key)
-
Field Details
-
resourceCache
protected com.github.benmanes.caffeine.cache.Cache<Object,org.aksw.commons.io.hadoop.binseach.v2.BinSearchResourceCache.CacheEntry> resourceCache -
cacheFactory
protected Supplier<org.aksw.commons.io.hadoop.binseach.v2.BinSearchResourceCache.CacheEntry> cacheFactoryFactory for the caches of individual resources.
-
-
Constructor Details
-
BinSearchResourceCache
public BinSearchResourceCache(int maxCacheSize) -
BinSearchResourceCache
-
-
Method Details
-
getOrCreate
public org.aksw.commons.io.hadoop.binseach.v2.BinSearchResourceCache.CacheEntry getOrCreate(Object key)
-