public interface QueryTree
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(QueryNode parentQueryNode,
QueryNode childQueryNode,
Optional<BinaryOrderedOperatorNode.ArgumentPosition> optionalPosition,
boolean mustBeNew,
boolean canReplace) |
boolean |
contains(QueryNode node) |
QueryTree |
createSnapshot()
Keeps the same query node objects but clones the tree edges
(since the latter are mutable by default).
|
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> |
getChildren(QueryNode node) |
Stream<QueryNode> |
getChildrenStream(QueryNode node) |
it.unibz.inf.ontop.com.google.common.collect.ImmutableSet<IntensionalDataNode> |
getIntensionalNodes() |
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 parentNode,
QueryNode childNode) |
Optional<QueryNode> |
getParent(QueryNode childNode) |
QueryNode |
getRootNode() |
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> |
getSubTreeNodesInTopDownOrder(QueryNode currentNode)
Excludes the top node from the list
|
it.unibz.inf.ontop.com.google.common.collect.ImmutableSet<TrueNode> |
getTrueNodes() |
UUID |
getVersionNumber() |
void |
insertParent(QueryNode childNode,
QueryNode newParentNode,
Optional<BinaryOrderedOperatorNode.ArgumentPosition> optionalPosition) |
QueryNode |
removeOrReplaceNodeByUniqueChild(QueryNode node) |
void |
removeSubTree(QueryNode subTreeRoot) |
void |
replaceNode(QueryNode previousNode,
QueryNode replacingNode) |
QueryNode |
replaceNodeByChild(QueryNode parentNode,
Optional<BinaryOrderedOperatorNode.ArgumentPosition> optionalReplacingChildPosition) |
void |
replaceNodesByOneNode(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> queryNodes,
QueryNode replacingNode,
QueryNode parentNode,
Optional<BinaryOrderedOperatorNode.ArgumentPosition> optionalPosition) |
void |
transferChild(QueryNode childNode,
QueryNode formerParentNode,
QueryNode newParentNode,
Optional<BinaryOrderedOperatorNode.ArgumentPosition> optionalPosition) |
QueryNode getRootNode()
void addChild(QueryNode parentQueryNode, QueryNode childQueryNode, Optional<BinaryOrderedOperatorNode.ArgumentPosition> optionalPosition, boolean mustBeNew, boolean canReplace) throws IllegalTreeUpdateException
IllegalTreeUpdateExceptionit.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> getChildren(QueryNode node)
boolean contains(QueryNode node)
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> getNodesInBottomUpOrder()
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> getNodesInTopDownOrder()
void removeSubTree(QueryNode subTreeRoot)
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> getSubTreeNodesInTopDownOrder(QueryNode currentNode)
QueryNode removeOrReplaceNodeByUniqueChild(QueryNode node) throws IllegalTreeUpdateException
IllegalTreeUpdateExceptionvoid replaceNodesByOneNode(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> queryNodes, QueryNode replacingNode, QueryNode parentNode, Optional<BinaryOrderedOperatorNode.ArgumentPosition> optionalPosition) throws IllegalTreeUpdateException
IllegalTreeUpdateExceptionOptional<BinaryOrderedOperatorNode.ArgumentPosition> getOptionalPosition(QueryNode parentNode, QueryNode childNode)
void insertParent(QueryNode childNode, QueryNode newParentNode, Optional<BinaryOrderedOperatorNode.ArgumentPosition> optionalPosition) throws IllegalTreeUpdateException
IllegalTreeUpdateExceptionit.unibz.inf.ontop.com.google.common.collect.ImmutableSet<TrueNode> getTrueNodes()
QueryNode replaceNodeByChild(QueryNode parentNode, Optional<BinaryOrderedOperatorNode.ArgumentPosition> optionalReplacingChildPosition)
it.unibz.inf.ontop.com.google.common.collect.ImmutableSet<IntensionalDataNode> getIntensionalNodes()
QueryTree createSnapshot()
void transferChild(QueryNode childNode, QueryNode formerParentNode, QueryNode newParentNode, Optional<BinaryOrderedOperatorNode.ArgumentPosition> optionalPosition)
UUID getVersionNumber()
Copyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.