org.openanzo.common.rdb.container
Class CacheProvider

java.lang.Object
  extended by org.openanzo.common.rdb.container.CacheProvider

public class CacheProvider
extends java.lang.Object

Set of LRUMaps used for caching Node values mapped to their IDs and the reverse.

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Field Summary
 java.util.Map<org.openrdf.model.BNode,java.lang.Long> blankCache
          Cache of BNodes to IDs
 java.util.Map<java.lang.Long,org.openrdf.model.BNode> blankIdCache
          Cache of IDs to BNodes
 java.util.Map<java.lang.Long,java.lang.String> datatypeIdMap
          Cache of IDs to Datatype URIs
 java.util.Map<java.lang.String,java.lang.Long> datatypeMap
          Cache of Datatype URIs to IDs
 java.util.Map<java.lang.Long,java.lang.String> languageIdMap
          Cache of IDs to Language Strings
 java.util.Map<java.lang.String,java.lang.Long> languageMap
          Cache of Language Strings to IDs
 java.util.Map<org.openrdf.model.Literal,java.lang.Long> literalCache
          Cache of Literals to IDs
 java.util.Map<java.lang.Long,org.openrdf.model.Literal> literalIdCache
          Cache of IDs to Literals
 java.util.Map<org.openrdf.model.URI,java.lang.Long> uriCache
          Cache of URIs to IDs
 java.util.Map<java.lang.Long,org.openrdf.model.URI> uriIdCache
          Cache of IDs to URIs
 java.util.Map<org.openrdf.model.Literal,java.lang.Long> xmlCache
          Cache of XMLLiterals to IDs
 java.util.Map<java.lang.Long,org.openrdf.model.Literal> xmlIdCache
          Cache of IDs to XMLLiterals
 
Constructor Summary
CacheProvider(int size)
          Create new cacheProvider with caches of given size
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uriCache

public java.util.Map<org.openrdf.model.URI,java.lang.Long> uriCache
Cache of URIs to IDs


uriIdCache

public java.util.Map<java.lang.Long,org.openrdf.model.URI> uriIdCache
Cache of IDs to URIs


blankCache

public java.util.Map<org.openrdf.model.BNode,java.lang.Long> blankCache
Cache of BNodes to IDs


blankIdCache

public java.util.Map<java.lang.Long,org.openrdf.model.BNode> blankIdCache
Cache of IDs to BNodes


literalCache

public java.util.Map<org.openrdf.model.Literal,java.lang.Long> literalCache
Cache of Literals to IDs


literalIdCache

public java.util.Map<java.lang.Long,org.openrdf.model.Literal> literalIdCache
Cache of IDs to Literals


xmlCache

public java.util.Map<org.openrdf.model.Literal,java.lang.Long> xmlCache
Cache of XMLLiterals to IDs


xmlIdCache

public java.util.Map<java.lang.Long,org.openrdf.model.Literal> xmlIdCache
Cache of IDs to XMLLiterals


datatypeIdMap

public java.util.Map<java.lang.Long,java.lang.String> datatypeIdMap
Cache of IDs to Datatype URIs


datatypeMap

public java.util.Map<java.lang.String,java.lang.Long> datatypeMap
Cache of Datatype URIs to IDs


languageIdMap

public java.util.Map<java.lang.Long,java.lang.String> languageIdMap
Cache of IDs to Language Strings


languageMap

public java.util.Map<java.lang.String,java.lang.Long> languageMap
Cache of Language Strings to IDs

Constructor Detail

CacheProvider

public CacheProvider(int size)
Create new cacheProvider with caches of given size

Parameters:
size - Size of caches to make


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.