public class DefaultIntermediateQueryBuilder extends Object implements IntermediateQueryBuilder
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultIntermediateQueryBuilder(ExecutorRegistry executorRegistry,
IntermediateQueryFactory iqFactory,
IntermediateQueryValidator validator,
CoreUtilsFactory coreUtilsFactory,
OntopModelSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(QueryNode parentNode,
QueryNode childNode)
When the parent is NOT a BinaryAsymetricOperatorNode
|
void |
addChild(QueryNode parentNode,
QueryNode childNode,
BinaryOrderedOperatorNode.ArgumentPosition position)
When the parent is a BinaryAsymetricOperatorNode.
|
void |
addChild(QueryNode parentNode,
QueryNode child,
Optional<BinaryOrderedOperatorNode.ArgumentPosition> optionalPosition)
For commodity
|
void |
addChildren(QueryNode parent,
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> children) |
void |
appendSubtree(QueryNode subQueryRoot,
IntermediateQuery sourceQuery) |
IntermediateQuery |
build() |
protected IntermediateQuery |
buildQuery(DistinctVariableOnlyDataAtom projectionAtom,
QueryTreeComponent treeComponent)
Can be overwritten to use another constructor
|
boolean |
contains(QueryNode node) |
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> |
getChildren(QueryNode node) |
protected ExecutorRegistry |
getExecutorRegistry() |
IntermediateQueryFactory |
getFactory() |
QueryNode |
getRootNode() |
protected OntopModelSettings |
getSettings() |
protected IntermediateQueryValidator |
getValidator() |
void |
init(DistinctVariableOnlyDataAtom projectionAtom,
QueryNode rootNode) |
protected DefaultIntermediateQueryBuilder(ExecutorRegistry executorRegistry, IntermediateQueryFactory iqFactory, IntermediateQueryValidator validator, CoreUtilsFactory coreUtilsFactory, OntopModelSettings settings)
public void init(DistinctVariableOnlyDataAtom projectionAtom, QueryNode rootNode)
init in interface IntermediateQueryBuilderpublic void addChild(QueryNode parentNode, QueryNode childNode) throws IntermediateQueryBuilderException
IntermediateQueryBuilderaddChild in interface IntermediateQueryBuilderIntermediateQueryBuilderExceptionpublic void addChild(QueryNode parentNode, QueryNode childNode, BinaryOrderedOperatorNode.ArgumentPosition position) throws IntermediateQueryBuilderException
IntermediateQueryBuilderaddChild in interface IntermediateQueryBuilderIntermediateQueryBuilderExceptionpublic void addChild(QueryNode parentNode, QueryNode child, Optional<BinaryOrderedOperatorNode.ArgumentPosition> optionalPosition) throws IntermediateQueryBuilderException
IntermediateQueryBuilderaddChild in interface IntermediateQueryBuilderIntermediateQueryBuilderExceptionpublic void appendSubtree(QueryNode subQueryRoot, IntermediateQuery sourceQuery)
appendSubtree in interface IntermediateQueryBuilderpublic void addChildren(QueryNode parent, it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> children)
addChildren in interface IntermediateQueryBuilderpublic IntermediateQuery build() throws IntermediateQueryBuilderException
build in interface IntermediateQueryBuilderIntermediateQueryBuilderExceptionprotected IntermediateQuery buildQuery(DistinctVariableOnlyDataAtom projectionAtom, QueryTreeComponent treeComponent)
public QueryNode getRootNode() throws IntermediateQueryBuilderException
getRootNode in interface IntermediateQueryBuilderIntermediateQueryBuilderExceptionpublic it.unibz.inf.ontop.com.google.common.collect.ImmutableList<QueryNode> getChildren(QueryNode node) throws IntermediateQueryBuilderException
getChildren in interface IntermediateQueryBuilderIntermediateQueryBuilderExceptionpublic boolean contains(QueryNode node)
contains in interface IntermediateQueryBuilderpublic IntermediateQueryFactory getFactory()
getFactory in interface IntermediateQueryBuilderprotected ExecutorRegistry getExecutorRegistry()
protected IntermediateQueryValidator getValidator()
protected OntopModelSettings getSettings()
Copyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.