uk.ac.ic.doc.rodex.qproc
Interface QueryRewritable
- All Known Subinterfaces:
- IQueryCache
- All Known Implementing Classes:
- DefaultQueryCache, QueryCache
public interface QueryRewritable
QueryRewritable.java
To be implemented by query caches that want to use QueryRewrite service (e.g.
DefaultQueryCache
for an example)
- Author:
- Duc M Le dmle@doc.ic.ac.uk
rewrite
QueryRewriterResult rewrite(ASG query,
Schema querySchema,
int type)
throws QueryRewriterException
- Rewrite a query associated to a schema s using the local query cache
- Parameters:
query
- the ASG
queryquerySchema
- the source schema over which query is executedtype
- specifies the type of query rewriting algorithm used (QueryRewriteProcessor
for list of types)
- Returns:
- QueryRewriterResult a result object that can be used to manipulate the rewriting results
- Throws:
QueryRewriterException