public class GuavaCacheManager extends Object implements CacheManager
BNODE_CACHE, LITERAL_CACHE, NODE_CACHE, NS_PREFIX_CACHE, NS_URI_CACHE, REGISTRY_CACHE, TRIPLE_CACHE, URI_CACHE| Constructor and Description |
|---|
GuavaCacheManager(KiWiConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all caches managed by this cache manager.
|
Map<String,KiWiAnonResource> |
getBNodeCache()
Return the anonId -> KiWiAnonResource cache from the cache manager.
|
Map |
getCacheByName(String name)
Get the cache with the given name from the cache manager.
|
Map<String,KiWiLiteral> |
getLiteralCache()
Return the literal cache key -> KiWiLiteral cache from the cache manager.
|
Map<String,KiWiNamespace> |
getNamespacePrefixCache()
Return the prefix -> namespace cache from the cache manager.
|
Map<String,KiWiNamespace> |
getNamespaceUriCache()
Return the URI -> namespace cache from the cache manager.
|
Map<Long,KiWiNode> |
getNodeCache()
Return the node id -> node cache from the cache manager.
|
Map<Long,Long> |
getRegistryCache()
Create and return the cache used by the CacheTripleRegistry.
|
Map<Long,KiWiTriple> |
getTripleCache()
Return the triple id -> triple cache from the cache manager.
|
Map<String,KiWiUriResource> |
getUriCache()
Return the uri -> KiWiUriResource cache from the cache manager.
|
void |
shutdown()
Shutdown this cache manager instance.
|
public GuavaCacheManager(KiWiConfiguration configuration)
public Map<Long,KiWiNode> getNodeCache()
getNodeCache in interface CacheManagerpublic Map<Long,KiWiTriple> getTripleCache()
getTripleCache in interface CacheManagerpublic Map<String,KiWiUriResource> getUriCache()
getUriCache in interface CacheManagerpublic Map<String,KiWiAnonResource> getBNodeCache()
getBNodeCache in interface CacheManagerpublic Map<String,KiWiLiteral> getLiteralCache()
getLiteralCache in interface CacheManagerLiteralCommons.createCacheKey(String, java.util.Locale, String)public Map<String,KiWiNamespace> getNamespaceUriCache()
getNamespaceUriCache in interface CacheManagerpublic Map<String,KiWiNamespace> getNamespacePrefixCache()
getNamespacePrefixCache in interface CacheManagerpublic Map<Long,Long> getRegistryCache()
getRegistryCache in interface CacheManagerpublic Map getCacheByName(String name)
getCacheByName in interface CacheManagername - public void clear()
clear in interface CacheManagerpublic void shutdown()
shutdown in interface CacheManagerCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.