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 CacheManager
public Map<Long,KiWiTriple> getTripleCache()
getTripleCache
in interface CacheManager
public Map<String,KiWiUriResource> getUriCache()
getUriCache
in interface CacheManager
public Map<String,KiWiAnonResource> getBNodeCache()
getBNodeCache
in interface CacheManager
public Map<String,KiWiLiteral> getLiteralCache()
getLiteralCache
in interface CacheManager
LiteralCommons.createCacheKey(String, java.util.Locale, String)
public Map<String,KiWiNamespace> getNamespaceUriCache()
getNamespaceUriCache
in interface CacheManager
public Map<String,KiWiNamespace> getNamespacePrefixCache()
getNamespacePrefixCache
in interface CacheManager
public Map<Long,Long> getRegistryCache()
getRegistryCache
in interface CacheManager
public Map getCacheByName(String name)
getCacheByName
in interface CacheManager
name
- public void clear()
clear
in interface CacheManager
public void shutdown()
shutdown
in interface CacheManager
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.