public class ReteRecipeCompiler
extends java.lang.Object
CompiledQuery
or
CompiledSubPlan
.Modifier and Type | Field and Description |
---|---|
protected boolean |
deleteAndRederiveEvaluation |
protected boolean |
differentialDataFlowEvaluation |
Constructor and Description |
---|
ReteRecipeCompiler(IQueryPlannerStrategy plannerStrategy,
org.apache.log4j.Logger logger,
IQueryMetaContext metaContext,
IQueryCacheContext queryCacheContext,
IQueryBackendHintProvider hintProvider,
QueryAnalyzer queryAnalyzer) |
ReteRecipeCompiler(IQueryPlannerStrategy plannerStrategy,
org.apache.log4j.Logger logger,
IQueryMetaContext metaContext,
IQueryCacheContext queryCacheContext,
IQueryBackendHintProvider hintProvider,
QueryAnalyzer queryAnalyzer,
boolean deleteAndRederiveEvaluation,
boolean differentialDataFlowEvaluation) |
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 |
protected java.util.List<CompiledSubPlan> |
getCompiledFormOfParents(SubPlan plan) |
SubPlan |
getPlan(PBody pBody) |
void |
reset()
Clears internal state
|
protected final boolean deleteAndRederiveEvaluation
protected final boolean differentialDataFlowEvaluation
public ReteRecipeCompiler(IQueryPlannerStrategy plannerStrategy, org.apache.log4j.Logger logger, IQueryMetaContext metaContext, IQueryCacheContext queryCacheContext, IQueryBackendHintProvider hintProvider, QueryAnalyzer queryAnalyzer)
public ReteRecipeCompiler(IQueryPlannerStrategy plannerStrategy, org.apache.log4j.Logger logger, IQueryMetaContext metaContext, IQueryCacheContext queryCacheContext, IQueryBackendHintProvider hintProvider, QueryAnalyzer queryAnalyzer, boolean deleteAndRederiveEvaluation, boolean differentialDataFlowEvaluation)
public void reset()
public CompiledQuery getCompiledForm(PQuery query)
CompiledQuery
compiled from a queryViatraQueryRuntimeException
public CompiledSubPlan getCompiledForm(SubPlan plan)
CompiledSubPlan
compiled from a query planViatraQueryRuntimeException
public SubPlan getPlan(PBody pBody)
ViatraQueryRuntimeException
protected java.util.List<CompiledSubPlan> getCompiledFormOfParents(SubPlan plan)
public java.util.Map<PQuery,CompiledQuery> getCachedCompiledQueries()