public class PlanGeneratorImpl extends Object implements PlanGenerator
Constructor and Description |
---|
PlanGeneratorImpl(DecomposerContext ctx,
SourceSelector selector,
CostEstimator costEstimator,
CardinalityEstimator cardinalityEstimator) |
Modifier and Type | Method and Description |
---|---|
Collection<Plan> |
accessPlans(org.openrdf.query.algebra.TupleExpr expr,
org.openrdf.query.BindingSet bindings,
org.openrdf.query.Dataset dataset)
Constructs all the possible plans by a simple abstract expressions, and possible
bindings and dataset
|
Plan |
createUnionPlan(List<Plan> plans) |
Collection<Plan> |
finalizePlans(Collection<Plan> plans,
PlanProperties properties)
Constructs enhanced plans that satisfy the @{code desiredProperties}
|
Collection<Plan> |
joinPlans(Collection<Plan> plan1,
Collection<Plan> plan2)
Constructs all the possible plans by combining (i.e.
|
public PlanGeneratorImpl(DecomposerContext ctx, SourceSelector selector, CostEstimator costEstimator, CardinalityEstimator cardinalityEstimator)
public Collection<Plan> accessPlans(org.openrdf.query.algebra.TupleExpr expr, org.openrdf.query.BindingSet bindings, org.openrdf.query.Dataset dataset)
PlanGenerator
accessPlans
in interface PlanGenerator
expr
- the abstract expressionbindings
- possible non-empty binding set that refer to variables in expr
dataset
- possible non-empty referring datasetspublic Collection<Plan> joinPlans(Collection<Plan> plan1, Collection<Plan> plan2)
PlanGenerator
joinPlans
in interface PlanGenerator
plan1
- a collection of simpler plansplan2
- a collection of simpler plansp1
and a plan from @{code p2} collectionspublic Collection<Plan> finalizePlans(Collection<Plan> plans, PlanProperties properties)
PlanGenerator
finalizePlans
in interface PlanGenerator
plans
- a collection of plans that might not satisfy all the @{code desiredProperties}properties
- a collection of plan properties that must be satisfiedCopyright © 2015 SemaGrow - FP7. All rights reserved.