uk.ac.ic.doc.automed.qproc.cache
Interface ICacheManager
public interface ICacheManager
ICacheManager.java
- Version:
- 1.0
Department of Computing, Imperial College
- Author:
- Duc M Le dmle@doc.ic.ac.uk
getQueryCache
IQueryCache getQueryCache(java.lang.String peerName,
java.lang.String schemaName)
throws CacheException
- Throws:
CacheException
getSchemaName
java.lang.String getSchemaName(java.lang.String schemaName)
executeCQP
ASG executeCQP(ASG q,
CacheUser cuser,
Schema s,
Schema[] targetSchemas,
java.lang.String context,
QueryProcessorConfiguration qpc)
throws DataSourceException,
NotFoundException
- Execute the cache-driven query processing logic.
- Parameters:
q - An IQL query held in an ASG which complies with
the limitations of what this wrapper is able to processcuser - a CacheUser class which is used to get data from sources - the AutoMed schema against which a query is being askeds - the target schema schemas linked to the query schema (can be set to null)context - specifies the current application context (see CachePolicy
class for a list of contexts)qpc - A definition of query processing options that should be
used when executing this query. See QueryProcessorConfiguration
for options that may be set.
- Returns:
- An
ASG containing the results of the query
- Throws:
DataSourceException
NotFoundException