Package org.apache.druid.client.cache
Class HybridCache
java.lang.Object
org.apache.druid.client.cache.HybridCache
- All Implemented Interfaces:
Closeable,AutoCloseable,Cache
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.druid.client.cache.Cache
Cache.NamedKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidvoiddoMonitor(ServiceEmitter emitter) Custom metrics not covered by CacheStats may be emitted by this method.byte[]get(Cache.NamedKey key) Map<Cache.NamedKey,byte[]> getBulk(Iterable<Cache.NamedKey> keys) Resulting map should not contain any null values (i.e.getStats()booleanisLocal()voidput(Cache.NamedKey key, byte[] value)
-
Constructor Details
-
HybridCache
-
-
Method Details
-
get
-
put
-
getBulk
Description copied from interface:CacheResulting map should not contain any null values (i.e. cache misses should not be included) -
close
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getStats
-
isLocal
public boolean isLocal() -
doMonitor
Description copied from interface:CacheCustom metrics not covered by CacheStats may be emitted by this method.
-