| Constructor and Description |
|---|
DynamicPlanner(ACache s,
ACache t) |
| Modifier and Type | Method and Description |
|---|---|
void |
createDependencies(LinkSpecification spec)
Create/Update dependency between a recently executed specification and an
other specification.
|
double |
getAtomicMappingSizes(String measure,
double threshold)
Computes atomic mapping sizes for a measure.
|
double |
getAtomicRuntimeCosts(String measure,
double threshold)
Computes atomic costs for a metric expression.
|
NestedPlan |
getBestConjunctivePlan(LinkSpecification spec,
NestedPlan left,
NestedPlan right,
double selectivity)
Find the least costly plan for a link specification with AND operator.
|
NestedPlan |
getBestDifferencePlan(LinkSpecification spec,
NestedPlan left,
NestedPlan right,
double selectivity)
Find the least costly plan for a link specification with MINUS operator.
|
String |
getDependency(LinkSpecification spec)
Returns specification to whom the input specification parameter is
dependent upon, if any.
|
double |
getFilterCosts(List<String> measures,
int mappingSize)
Computes costs for a filtering instruction.
|
LinkSpecification |
getLinkSpec(NestedPlan plan)
Returns the specification from which the input plan was generated.
|
NestedPlan |
getPlan(LinkSpecification spec)
Returns the corresponding plan of a specification.
|
Map<String,NestedPlan> |
getPlans() |
void |
init(LinkSpecification spec)
Initialize plans and specifications fields.
|
boolean |
isExecuted(LinkSpecification spec)
Checks if the plan of the specified link specification is executed.
|
boolean |
isStatic()
Returns the status of the planner.
|
LinkSpecification |
normalize(LinkSpecification spec)
Normalization of input link specification.
|
NestedPlan |
plan(LinkSpecification spec)
Generates a NestedPlan for a link specification.
|
NestedPlan |
plan(LinkSpecification spec,
ACache source,
ACache target,
AMapping sourceMapping,
AMapping targetMapping)
Generates a instructionList based on the optimality assumption used in
databases.
|
void |
updatePlan(LinkSpecification spec,
double rt,
double selectivity,
double msize)
Updates the characteristics of a plan once it is executed.
|
public Map<String,NestedPlan> getPlans()
public void init(LinkSpecification spec)
spec - The input link specificationpublic void createDependencies(LinkSpecification spec)
spec - The recently executed specificationpublic String getDependency(LinkSpecification spec)
spec - The dependent specificationpublic double getAtomicRuntimeCosts(String measure, double threshold)
measure - Measure of metric expressionthreshold - Threshold of metric expressionpublic double getAtomicMappingSizes(String measure, double threshold)
measure - Measure of metric expressionthreshold - Threshold of metric expressionpublic boolean isExecuted(LinkSpecification spec)
spec - The input link specificationpublic double getFilterCosts(List<String> measures, int mappingSize)
measures - Set of expressions used to filtermappingSize - Size of mappingpublic NestedPlan getPlan(LinkSpecification spec)
spec - The link specificationpublic LinkSpecification getLinkSpec(NestedPlan plan)
plan - The nested planpublic void updatePlan(LinkSpecification spec, double rt, double selectivity, double msize)
spec - The link specification from which the plan was generatedrt - The real runtime of the planselectivity - The real selectivity of the planmsize - The real mapping size returned when the plan is executedpublic NestedPlan plan(LinkSpecification spec)
spec - Input link specificationpublic NestedPlan plan(LinkSpecification spec, ACache source, ACache target, AMapping sourceMapping, AMapping targetMapping)
getBestConjunctivePlan(org.aksw.limes.core.io.ls.LinkSpecification, org.aksw.limes.core.execution.planning.plan.NestedPlan, org.aksw.limes.core.execution.planning.plan.NestedPlan, double),
getBestDifferencePlan(org.aksw.limes.core.io.ls.LinkSpecification, org.aksw.limes.core.execution.planning.plan.NestedPlan, org.aksw.limes.core.execution.planning.plan.NestedPlan, double) resp.).spec - Input link specificationsource - Source cachetarget - Target cachesourceMapping - Size of source mappingtargetMapping - Size of target mappingpublic NestedPlan getBestDifferencePlan(LinkSpecification spec, NestedPlan left, NestedPlan right, double selectivity)
spec - The link specificationleft - Left child nested planright - Right child nested planselectivity - The overall selectivitypublic NestedPlan getBestConjunctivePlan(LinkSpecification spec, NestedPlan left, NestedPlan right, double selectivity)
spec - The link specificationleft - Left child nested planright - Right child nested planselectivity - The overall selectivitypublic boolean isStatic()
public LinkSpecification normalize(LinkSpecification spec)
spec - The normalized link specificationCopyright © 2020. All rights reserved.