Modifier and Type | Method and Description |
---|---|
SubPlan |
LocalSearchPlannerStrategy.plan(PBody pBody,
org.apache.log4j.Logger logger,
IQueryMetaContext context)
Deprecated.
The implementation of a local search-based algorithm to create a search plan for a flattened (and normalized)
PBody
|
SubPlan |
LocalSearchRuntimeBasedStrategy.plan(PBody pBody,
org.apache.log4j.Logger logger,
java.util.Set<PVariable> initialBoundVariables,
IQueryMetaContext metaContext,
IQueryRuntimeContext runtimeContext,
java.util.Map<java.lang.String,java.lang.Object> hints)
The implementation of a local search-based algorithm to create a search plan for a flattened (and normalized)
PBody
|
Modifier and Type | Method and Description |
---|---|
java.util.List<SubPlan> |
LocalSearchPlanner.getPlansForBodies() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ISearchOperation> |
POperationCompiler.compile(SubPlan plan,
java.util.Set<java.lang.Integer> boundVariableIndexes)
Compiles a plan of
POperation s to a list of type List<ISearchOperation> |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Predicate<PConstraint> |
IConstraintEvaluablePredicateProvider.getConstraint(SubPlan plan) |
double |
ICostEstimator.getCost(SubPlan currentPlan,
PConstraint patternConstraint)
Deprecated.
According to the current variable binding estimates the cost of the application of the given constraint
|
Constructor and Description |
---|
EvaluablePConstraint(SubPlan plan,
boolean allowInverseNavigation) |
Modifier and Type | Method and Description |
---|---|
double |
VariableBindingBasedCostEstimator.getCost(SubPlan currentPlan,
PConstraint constraint)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Map<PConstraint,java.util.Set<java.lang.Integer>> |
CompilerHelper.cacheVariableBindings(SubPlan plan,
java.util.Map<PVariable,java.lang.Integer> variableMappings,
java.util.Set<java.lang.Integer> adornment) |
static java.util.List<POperation> |
CompilerHelper.createOperationsList(SubPlan plan)
Extracts the operations from a SubPlan into a list of POperations in the order of execution
|
static java.util.Map<PVariable,java.lang.Integer> |
CompilerHelper.createVariableMapping(SubPlan plan) |
Constructor and Description |
---|
OrderingHeuristics(SubPlan plan,
IQueryMetaContext context)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
SubPlan |
IOperationCompiler.binaryEdgeTypePlan(Tuple nodes,
java.lang.Object supplierKey) |
SubPlan |
IOperationCompiler.buildBetaNode(SubPlan primaryPlan,
SubPlan sidePlan,
TupleMask primaryMask,
TupleMask sideMask,
TupleMask complementer,
boolean negative) |
SubPlan |
IOperationCompiler.buildCountCheckBetaNode(SubPlan primaryPlan,
SubPlan sidePlan,
TupleMask primaryMask,
TupleMask originalSideMask,
int resultPositionInSignature) |
SubPlan |
IOperationCompiler.buildCounterBetaNode(SubPlan primaryPlan,
SubPlan sidePlan,
TupleMask primaryMask,
TupleMask originalSideMask,
TupleMask complementer,
java.lang.Object aggregateResultCalibrationElement) |
SubPlan |
IOperationCompiler.buildEqualityChecker(SubPlan parentPlan,
int[] indices) |
SubPlan |
IOperationCompiler.buildFunctionEvaluator(IExpressionEvaluator evaluator,
java.util.Map<java.lang.String,java.lang.Integer> tupleNameMap,
SubPlan parentPlan,
java.lang.Object computedResultCalibrationElement) |
SubPlan |
IOperationCompiler.buildInjectivityChecker(SubPlan parentPlan,
int subject,
int[] inequalIndices) |
SubPlan |
IOperationCompiler.buildPredicateChecker(IExpressionEvaluator evaluator,
java.util.Map<java.lang.String,java.lang.Integer> tupleNameMap,
SubPlan parentPlan) |
SubPlan |
IOperationCompiler.buildStartingPlan(java.lang.Object[] constantValues,
java.lang.Object[] constantNames) |
SubPlan |
IOperationCompiler.buildTransitiveClosure(SubPlan parentPlan) |
SubPlan |
IOperationCompiler.buildTrimmer(SubPlan parentPlan,
TupleMask trimMask,
boolean enforceUniqueness) |
SubPlan |
SubPlanFactory.createSubPlan(POperation operation,
SubPlan... parentPlans) |
SubPlan |
IOperationCompiler.directContainmentPlan(Tuple nodes) |
SubPlan |
IOperationCompiler.directGeneralizationPlan(Tuple nodes) |
SubPlan |
IOperationCompiler.directInstantiationPlan(Tuple nodes) |
SubPlan |
IOperationCompiler.patternCallPlan(Tuple nodes,
PQuery supplierKey) |
SubPlan |
IQueryPlannerStrategy.plan(PBody pSystem,
org.apache.log4j.Logger logger,
IQueryMetaContext context) |
SubPlan |
IOperationCompiler.ternaryEdgeTypePlan(Tuple nodes,
java.lang.Object supplierKey) |
SubPlan |
IOperationCompiler.transitiveContainmentPlan(Tuple nodes) |
SubPlan |
IOperationCompiler.transitiveGeneralizationPlan(Tuple nodes) |
SubPlan |
IOperationCompiler.transitiveInstantiationPlan(Tuple nodes) |
SubPlan |
IOperationCompiler.unaryTypePlan(Tuple nodes,
java.lang.Object supplierKey) |
Modifier and Type | Method and Description |
---|---|
java.util.List<? extends SubPlan> |
SubPlan.getParentPlans() |
Modifier and Type | Method and Description |
---|---|
SubPlan |
IOperationCompiler.buildBetaNode(SubPlan primaryPlan,
SubPlan sidePlan,
TupleMask primaryMask,
TupleMask sideMask,
TupleMask complementer,
boolean negative) |
void |
IOperationCompiler.buildConnection(SubPlan parentPlan,
Collector collector) |
SubPlan |
IOperationCompiler.buildCountCheckBetaNode(SubPlan primaryPlan,
SubPlan sidePlan,
TupleMask primaryMask,
TupleMask originalSideMask,
int resultPositionInSignature) |
SubPlan |
IOperationCompiler.buildCounterBetaNode(SubPlan primaryPlan,
SubPlan sidePlan,
TupleMask primaryMask,
TupleMask originalSideMask,
TupleMask complementer,
java.lang.Object aggregateResultCalibrationElement) |
SubPlan |
IOperationCompiler.buildEqualityChecker(SubPlan parentPlan,
int[] indices) |
SubPlan |
IOperationCompiler.buildFunctionEvaluator(IExpressionEvaluator evaluator,
java.util.Map<java.lang.String,java.lang.Integer> tupleNameMap,
SubPlan parentPlan,
java.lang.Object computedResultCalibrationElement) |
SubPlan |
IOperationCompiler.buildInjectivityChecker(SubPlan parentPlan,
int subject,
int[] inequalIndices) |
SubPlan |
IOperationCompiler.buildPredicateChecker(IExpressionEvaluator evaluator,
java.util.Map<java.lang.String,java.lang.Integer> tupleNameMap,
SubPlan parentPlan) |
SubPlan |
IOperationCompiler.buildTransitiveClosure(SubPlan parentPlan) |
SubPlan |
IOperationCompiler.buildTrimmer(SubPlan parentPlan,
TupleMask trimMask,
boolean enforceUniqueness) |
SubPlan |
SubPlanFactory.createSubPlan(POperation operation,
SubPlan... parentPlans) |
Constructor and Description |
---|
SubPlan(PBody body,
POperation operation,
SubPlan... parentPlans)
A SubPlan is constructed by applying a
POperation on zero or more parent SubPlans. |
Constructor and Description |
---|
SubPlan(PBody body,
POperation operation,
java.util.List<? extends SubPlan> parentPlans)
A SubPlan is constructed by applying a
POperation on zero or more parent SubPlans. |
Modifier and Type | Method and Description |
---|---|
static SubPlan |
BuildHelper.trimUnneccessaryVariables(SubPlanFactory planFactory,
SubPlan plan,
boolean onlyIfNotDetermined,
IQueryMetaContext context)
Reduces the number of tuples by trimming (existentially quantifying) the set of variables that
are visible in the subplan,
are not exported parameters,
have all their constraints already enforced in the subplan,
and thus will not be needed anymore.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
BuildHelper.areAllVariablesDetermined(SubPlan plan,
java.util.Collection<PVariable> determining,
IQueryMetaContext context) |
static boolean |
BuildHelper.areVariablesDetermined(SubPlan plan,
java.util.Collection<PVariable> determining,
java.util.Collection<PVariable> determined,
IQueryMetaContext context) |
static void |
BuildHelper.finalCheck(PBody pSystem,
SubPlan plan,
IQueryMetaContext context)
Verifies whether all constraints are enforced and exported parameters are present.
|
static PConstraint |
BuildHelper.getAnyUnenforcedConstraint(PBody pSystem,
SubPlan plan)
Finds an arbitrary constraint that is not enforced at the given plan.
|
static SubPlan |
BuildHelper.trimUnneccessaryVariables(SubPlanFactory planFactory,
SubPlan plan,
boolean onlyIfNotDetermined,
IQueryMetaContext context)
Reduces the number of tuples by trimming (existentially quantifying) the set of variables that
are visible in the subplan,
are not exported parameters,
have all their constraints already enforced in the subplan,
and thus will not be needed anymore.
|
Modifier and Type | Method and Description |
---|---|
void |
PProject.checkConsistency(SubPlan subPlan) |
void |
POperation.checkConsistency(SubPlan subPlan)
Checks whether this constraint can be properly applied at the given SubPlan.
|
void |
PJoin.checkConsistency(SubPlan subPlan) |
void |
PApply.checkConsistency(SubPlan subPlan) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
DeferredPConstraint.isReadyAt(SubPlan plan,
IQueryMetaContext context) |
boolean |
VariableDeferredPConstraint.isReadyAt(SubPlan plan,
IQueryMetaContext context)
Refine further if needed
|
Modifier and Type | Method and Description |
---|---|
PVariable |
BaseTypeSafeConstraint.checkTypeSafety(SubPlan plan,
IQueryMetaContext context)
Checks whether all type restrictions are already enforced on affected variables.
|
boolean |
Equality.isReadyAt(SubPlan plan,
IQueryMetaContext context) |
boolean |
BaseTypeSafeConstraint.isReadyAt(SubPlan plan,
IQueryMetaContext context) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<SubPlan> |
ReteBoundary.getParentPlansOfReceiver(Address<? extends Receiver> receiver)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Address<? extends Supplier> |
ReteBoundary.getAddress(SubPlan plan) |
void |
ReteBoundary.mapPlanToAddress(SubPlan plan,
Address<? extends Supplier> handle) |
void |
ReteBoundary.registerParentPlanForReceiver(Address<? extends Receiver> receiver,
SubPlan parentPlan)
|
Modifier and Type | Method and Description |
---|---|
SubPlan |
BasicLinearLayout.plan(PBody pSystem,
org.apache.log4j.Logger logger,
IQueryMetaContext context) |
Constructor and Description |
---|
OrderingHeuristics(SubPlan plan,
IQueryMetaContext context) |
Modifier and Type | Method and Description |
---|---|
SubPlan |
ReteRecipeCompiler.getPlan(PBody pBody) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<PBody,SubPlan> |
ReteRecipeCompiler.getCachedQueryPlans()
Returns an unmodifiable view of currently cached query plans.
|
Modifier and Type | Method and Description |
---|---|
static PlanningTrace |
CompilerHelper.checkAndTrimEqualVariables(SubPlan plan,
PlanningTrace coreTrace)
Makes sure that all variables in the tuple are different so that it can be used as
CompiledSubPlan . |
CompiledSubPlan |
ReteRecipeCompiler.getCompiledForm(SubPlan plan)
Returns a
CompiledSubPlan compiled from a query plan |
static RecipeTraceInfo |
CompilerHelper.makeIndexerTrace(SubPlan planToCompile,
PlanningTrace parentTrace,
TupleMask mask)
Returns a compiled indexer trace according to a mask
|
Constructor and Description |
---|
JoinHelper(SubPlan planToCompile,
PlanningTrace primaryCompiled,
PlanningTrace callTrace) |
Modifier and Type | Method and Description |
---|---|
SubPlan |
QuasiTreeLayout.plan(PBody pSystem,
org.apache.log4j.Logger logger,
IQueryMetaContext context) |
SubPlan |
QuasiTreeLayout.Scaffold.run() |
Modifier and Type | Method and Description |
---|---|
SubPlan |
PlanningTrace.getSubPlan() |
Modifier and Type | Method and Description |
---|---|
CompiledSubPlan |
PlanningTrace.cloneFor(SubPlan newSubPlan)
Returns a new clone that reinterprets the same compiled form
as the compiled form of a (potentially different) subPlan.
|
Constructor and Description |
---|
CompiledSubPlan(SubPlan subPlan,
java.util.List<PVariable> variablesTuple,
ReteNodeRecipe recipe,
java.util.Collection<? extends RecipeTraceInfo> parentRecipeTraces) |
CompiledSubPlan(SubPlan subPlan,
java.util.List<PVariable> variablesTuple,
ReteNodeRecipe recipe,
RecipeTraceInfo... parentRecipeTraces) |
PlanningTrace(SubPlan subPlan,
java.util.List<PVariable> variablesTuple,
ReteNodeRecipe recipe,
java.util.Collection<? extends RecipeTraceInfo> parentRecipeTraces) |
PlanningTrace(SubPlan subPlan,
java.util.List<PVariable> variablesTuple,
ReteNodeRecipe recipe,
RecipeTraceInfo... parentRecipeTraces) |