public class ReteRecipeCompiler
extends java.lang.Object
CompiledQuery
or CompiledSubPlan
.Constructor and Description |
---|
ReteRecipeCompiler(IQueryPlannerStrategy plannerStrategy,
org.apache.log4j.Logger logger,
IQueryMetaContext metaContext,
IQueryCacheContext queryCacheContext,
IQueryBackendHintProvider hintProvider) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<PQuery,CompiledQuery> |
getCachedCompiledQueries()
Returns an unmodifiable view of currently cached compiled queries.
|
java.util.Map<PBody,SubPlan> |
getCachedQueryPlans()
Returns an unmodifiable view of currently cached query plans.
|
CompiledQuery |
getCompiledForm(PQuery query)
Returns a
CompiledQuery compiled from a query |
CompiledSubPlan |
getCompiledForm(SubPlan plan)
Returns a
CompiledSubPlan compiled from a query plan |
SubPlan |
getPlan(PBody pBody) |
void |
reset()
Clears internal state
|
public ReteRecipeCompiler(IQueryPlannerStrategy plannerStrategy, org.apache.log4j.Logger logger, IQueryMetaContext metaContext, IQueryCacheContext queryCacheContext, IQueryBackendHintProvider hintProvider)
public void reset()
public CompiledQuery getCompiledForm(PQuery query) throws QueryProcessingException
CompiledQuery
compiled from a queryQueryProcessingException
public CompiledSubPlan getCompiledForm(SubPlan plan) throws QueryProcessingException
CompiledSubPlan
compiled from a query planQueryProcessingException
public SubPlan getPlan(PBody pBody) throws QueryProcessingException
QueryProcessingException
public java.util.Map<PQuery,CompiledQuery> getCachedCompiledQueries()