Class ApplyVocabularyMappings
java.lang.Object
se.liu.ida.hefquin.engine.queryproc.impl.loptimizer.ApplyVocabularyMappings
- All Implemented Interfaces:
HeuristicForLogicalOptimization
Rewrites an initial logical plan into a plan that incorporates translations
of local to global vocabulary and request-operator rewriting. This method
implements the rewriteLogPlan pseudocode of Helgesson's B.Sc thesis.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(LogicalPlan inputPlan) apply(LogicalPlan inputPlan, QueryProcContext ctxt2) Applies this heuristics to the given plan and returns the resulting, potentially rewritten plan.static LogicalPlanrewriteReqOf(SPARQLGraphPattern pattern, FederationMember fm, boolean mayReduce) Creates a logical plan where all requests are TriplePatternRequests for use when a federation member's interface is a TPF-server.static LogicalPlanrewriteToUseLocalVocabulary(LogicalPlan inputPlan) Rewrites the given logical plan with a request operator as root into a logical plan that uses the local vocabulary of the federation member of the request.
-
Constructor Details
-
ApplyVocabularyMappings
public ApplyVocabularyMappings()
-
-
Method Details
-
apply
Description copied from interface:HeuristicForLogicalOptimizationApplies this heuristics to the given plan and returns the resulting, potentially rewritten plan.- Specified by:
applyin interfaceHeuristicForLogicalOptimization
-
apply
-
rewriteToUseLocalVocabulary
Rewrites the given logical plan with a request operator as root into a logical plan that uses the local vocabulary of the federation member of the request. -
rewriteReqOf
public static LogicalPlan rewriteReqOf(SPARQLGraphPattern pattern, FederationMember fm, boolean mayReduce) Creates a logical plan where all requests are TriplePatternRequests for use when a federation member's interface is a TPF-server.
-