-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extensible query planner & relation evaluation fixes #139
* The Rete recipe compiler is now extensible through the use of ExternalQueryPlanProvider. * JoinCandidate visibility is changed, so that ExternalQueryPlanProviders can reuse the class. * The communication tracker correctly considers the dependencies between relation evaluator nodes, batching receivers, and the batching receivers' transitive sources. * Small performance improvement in RelationEvaluatorNode to guard against spurious batchUpdateCompleted calls as much as possible. Signed-off-by: Tamas Szabo <szabta89@github.com> Change-Id: I948e80a3057f63416a78c072073107960678adeb
- Loading branch information
Showing
7 changed files
with
197 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...rg/eclipse/viatra/query/runtime/matchers/psystem/rewriters/ExternalQueryPlanProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2010-2017, Grill Balázs, IncQueryLabs | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-v20.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
package org.eclipse.viatra.query.runtime.matchers.psystem.rewriters; | ||
|
||
import org.eclipse.viatra.query.runtime.matchers.backend.CommonQueryHintOptions; | ||
import org.eclipse.viatra.query.runtime.matchers.planning.SubPlan; | ||
import org.eclipse.viatra.query.runtime.matchers.psystem.PBody; | ||
|
||
/** | ||
* An implementation of this interface can provide an execution plan for a {@link PBody}. | ||
* The plan provider can be registered via a query hint (see {@link CommonQueryHintOptions#externalQueryPlanProvider}), | ||
* and it will be used by the Rete recipe compiler. | ||
* | ||
* @since 2.8 | ||
*/ | ||
public interface ExternalQueryPlanProvider { | ||
|
||
public SubPlan getPlan(PBody body); | ||
|
||
} |
169 changes: 93 additions & 76 deletions
169
...c/org/eclipse/viatra/query/runtime/rete/construction/plancompiler/ReteRecipeCompiler.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters