public class QueryRoot extends QueryBase implements IPrefixDecls, IDataSetNode
DatasetNode,
IGroupNode,
ProjectionNode,
GroupByNode,
HavingNode,
OrderByNode,
SliceNode,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static interface |
QueryRoot.Annotations |
DEFAULT_INITIAL_CAPACITY| Constructor and Description |
|---|
QueryRoot(BOp[] args,
Map<String,Object> anns) |
QueryRoot(QueryRoot queryRoot)
Deep copy constructor.
|
QueryRoot(QueryType queryType) |
| Modifier and Type | Method and Description |
|---|---|
DatasetNode |
getDataset()
Return the dataset.
|
NamedSubqueriesNode |
getNamedSubqueries()
Return the node for the named subqueries -or-
null if it
does not exist. |
NamedSubqueriesNode |
getNamedSubqueriesNotNull()
Return the node for the named subqueries.
|
Map<String,String> |
getPrefixDecls()
The namespace prefix declarations map.
|
void |
setDataset(DatasetNode dataset)
Set the dataset.
|
void |
setNamedSubqueries(NamedSubqueriesNode namedSubqueries)
Set or clear the named subqueries node.
|
void |
setParent(IGroupNode<?> parent)
This is a root node.
|
void |
setPrefixDecls(Map<String,String> prefixDecls)
Set the namespace prefix declarations map.
|
String |
toString(int indent)
The contract of this method at this level is under-specified.
|
String |
toString(int indent,
IBindingSet[] bs) |
getBindingsClause, getConstruct, getGraphPattern, getGroupBy, getHaving, getIncludeInferred, getOrderBy, getProjectedVars, getProjection, getQueryType, getSelectExprVars, getSlice, getTimeout, getWhereClause, hasSlice, hasWhereClause, setBindingsClause, setConstruct, setGraphPattern, setGroupBy, setHaving, setIncludeInferred, setOrderBy, setProjection, setQueryType, setSlice, setTimeout, setWhereClausegetQueryHints, toStringaddExplainHint, getExplainHints, getQueryHint, getQueryHint, getQueryHintAsBoolean, getQueryHintAsBoolean, getQueryHintAsInteger, replaceAllWith, setQueryHint, setQueryHintsaddArg, addArg, addArgIfAbsent, annotations, annotationsEqual, argIterator, args, arity, clearProperty, copyAll, get, getProperty, indexOf, removeArg, replaceWith, setArg, setArgs, setId, setProperty, setUnboundProperty, toArray, toArrayannotationsEqual, annotationsToString, annotationsToString, annotationValueToString, checkArgs, clone, equals, getEvaluationContext, getId, getProperty, getRequiredProperty, hashCode, indent, isController, mutation, shortenName, toShortStringfinalize, getClass, notify, notifyAll, wait, wait, waitannotations, argIterator, args, arity, clone, get, getEvaluationContext, getId, getProperty, getRequiredProperty, isController, setProperty, toArray, toArray, toShortString, toStringgetPropertypublic QueryRoot(QueryRoot queryRoot)
queryRoot - public QueryRoot(QueryType queryType)
public void setParent(IGroupNode<?> parent)
UnsupportedOperationExceptionpublic Map<String,String> getPrefixDecls()
IPrefixDeclsMap with
String keys (prefix) and String values (the uri
associated with that prefix).getPrefixDecls in interface IPrefixDeclspublic void setPrefixDecls(Map<String,String> prefixDecls)
IPrefixDeclsMap with
String keys (prefix) and String values (the uri
associated with that prefix).setPrefixDecls in interface IPrefixDeclspublic void setDataset(DatasetNode dataset)
IDataSetNodesetDataset in interface IDataSetNodepublic DatasetNode getDataset()
IDataSetNodegetDataset in interface IDataSetNodepublic NamedSubqueriesNode getNamedSubqueries()
null if it
does not exist.getNamedSubqueriesNotNull()public NamedSubqueriesNode getNamedSubqueriesNotNull()
QueryRoot and returned. This helps out
with what is otherwise an awkward conditional construction pattern.public void setNamedSubqueries(NamedSubqueriesNode namedSubqueries)
namedSubqueries - The named subqueries not (may be null).getNamedSubqueriesNotNull()public String toString(int indent)
CoreBaseBOpCoreBaseBOp.toString()
Or:
- return a pretty-print representation of the object with indent
Note that the former contract may or may not include recursive descent through a tree-like
object, whereas the latter almost certainly does.public String toString(int indent, IBindingSet[] bs)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.