public interface IntermediateQuery
| Modifier and Type | Method and Description |
|---|---|
<R extends ProposalResults,P extends QueryOptimizationProposal<R>> |
applyProposal(P proposal)
Central method for submitting a proposal.
|
<R extends ProposalResults,P extends QueryOptimizationProposal<R>> |
applyProposal(P propagationProposal,
boolean disableValidation)
May disable the (possible) validation tests
|
boolean |
contains(QueryNode node) |
IntermediateQuery |
createSnapshot()
Keeps the same query node objects but clones the tree edges
(since the latter are mutable by default).
|
Variable |
generateNewVariable()
Returns a variable that is not used in the intermediate query.
|
Variable |
generateNewVariable(Variable formerVariable)
Returns a variable that is not used in the intermediate query.
|
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> |
getAncestors(QueryNode descendantNode)
From the parent to the oldest ancestor.
|
Optional<QueryNode> |
getChild(QueryNode currentNode,
BinaryOrderedOperatorNode.ArgumentPosition position) |
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> |
getChildren(QueryNode node) |
Stream<QueryNode> |
getChildrenStream(QueryNode node) |
ConstructionNode |
getClosestConstructionNode(QueryNode node)
Returns itself if is a ConstructionNode or its first ancestor that is a construction node otherwise.
|
ExecutorRegistry |
getExecutorRegistry()
Not for end-users!
Needed using when using specialized intermediate queries
|
IntermediateQueryFactory |
getFactory() |
Optional<QueryNode> |
getFirstChild(QueryNode node) |
Stream<IntensionalDataNode> |
getIntensionalNodes() |
it.unibz.inf.ontop.com.google.common.collect.ImmutableSet<Variable> |
getKnownVariables() |
Optional<QueryNode> |
getNextSibling(QueryNode node) |
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> |
getNodesInBottomUpOrder() |
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> |
getNodesInTopDownOrder() |
Optional<BinaryOrderedOperatorNode.ArgumentPosition> |
getOptionalPosition(QueryNode child) |
Optional<BinaryOrderedOperatorNode.ArgumentPosition> |
getOptionalPosition(QueryNode parentNode,
QueryNode child)
TODO: explain
|
Stream<QueryNode> |
getOtherChildrenStream(QueryNode parent,
QueryNode childToOmit) |
Optional<QueryNode> |
getParent(QueryNode node) |
DistinctVariableOnlyDataAtom |
getProjectionAtom() |
QueryNode |
getRootNode() |
IntermediateQuery |
getSubquery(QueryNode root,
DistinctVariableOnlyDataAtom projectionAtom) |
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> |
getSubTreeNodesInTopDownOrder(QueryNode currentNode)
EXCLUDES the root of the sub-tree (currentNode).
|
Stream<TrueNode> |
getTrueNodes() |
it.unibz.inf.ontop.com.google.common.collect.ImmutableSet<Variable> |
getVariables(QueryNode subTreeRootNode)
Set of variables that are returned by the sub-tree.
|
it.unibz.inf.ontop.com.google.common.collect.ImmutableSet<Variable> |
getVariablesRequiredByAncestors(QueryNode queryNode)
Minimal set of variables such that a construction node projecting exactly these variables could be inserted
just above this node without altering the query semantics.
|
UUID |
getVersionNumber() |
boolean |
hasAncestor(QueryNode descendantNode,
QueryNode ancestorNode) |
IntermediateQueryBuilder |
newBuilder()
Creates a uninitialized query builder.
|
QueryNode getRootNode()
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> getNodesInBottomUpOrder()
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> getNodesInTopDownOrder()
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> getChildren(QueryNode node)
Stream<QueryNode> getOtherChildrenStream(QueryNode parent, QueryNode childToOmit)
Optional<QueryNode> getChild(QueryNode currentNode, BinaryOrderedOperatorNode.ArgumentPosition position)
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> getAncestors(QueryNode descendantNode)
Optional<BinaryOrderedOperatorNode.ArgumentPosition> getOptionalPosition(QueryNode parentNode, QueryNode child)
Optional<BinaryOrderedOperatorNode.ArgumentPosition> getOptionalPosition(QueryNode child)
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> getSubTreeNodesInTopDownOrder(QueryNode currentNode)
Stream<IntensionalDataNode> getIntensionalNodes()
boolean contains(QueryNode node)
<R extends ProposalResults,P extends QueryOptimizationProposal<R>> R applyProposal(P proposal) throws InvalidQueryOptimizationProposalException, EmptyQueryException
<R extends ProposalResults,P extends QueryOptimizationProposal<R>> R applyProposal(P propagationProposal, boolean disableValidation) throws InvalidQueryOptimizationProposalException, EmptyQueryException
ConstructionNode getClosestConstructionNode(QueryNode node)
Variable generateNewVariable()
Variable generateNewVariable(Variable formerVariable)
DistinctVariableOnlyDataAtom getProjectionAtom()
it.unibz.inf.ontop.com.google.common.collect.ImmutableSet<Variable> getKnownVariables()
IntermediateQuery createSnapshot()
it.unibz.inf.ontop.com.google.common.collect.ImmutableSet<Variable> getVariables(QueryNode subTreeRootNode)
UUID getVersionNumber()
IntermediateQueryBuilder newBuilder()
ExecutorRegistry getExecutorRegistry()
IntermediateQueryFactory getFactory()
it.unibz.inf.ontop.com.google.common.collect.ImmutableSet<Variable> getVariablesRequiredByAncestors(QueryNode queryNode)
IntermediateQuery getSubquery(QueryNode root, DistinctVariableOnlyDataAtom projectionAtom)
Copyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.