public class QueryRoot extends QueryBase implements IPrefixDecls, IDataSetNode
DatasetNode
,
IGroupNode
,
ProjectionNode
,
GroupByNode
,
HavingNode
,
OrderByNode
,
SliceNode
,
Serialized FormModifier 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, setWhereClause
getQueryHints, toString
addExplainHint, getExplainHints, getQueryHint, getQueryHint, getQueryHintAsBoolean, getQueryHintAsBoolean, getQueryHintAsInteger, replaceAllWith, setQueryHint, setQueryHints
addArg, addArg, addArgIfAbsent, annotations, annotationsEqual, argIterator, args, arity, clearProperty, copyAll, get, getProperty, indexOf, removeArg, replaceWith, setArg, setArgs, setId, setProperty, setUnboundProperty, toArray, toArray
annotationsEqual, annotationsToString, annotationsToString, annotationValueToString, checkArgs, clone, equals, getEvaluationContext, getId, getProperty, getRequiredProperty, hashCode, indent, isController, mutation, shortenName, toShortString
finalize, getClass, notify, notifyAll, wait, wait, wait
annotations, argIterator, args, arity, clone, get, getEvaluationContext, getId, getProperty, getRequiredProperty, isController, setProperty, toArray, toArray, toShortString, toString
getProperty
public QueryRoot(QueryRoot queryRoot)
queryRoot
- public QueryRoot(QueryType queryType)
public void setParent(IGroupNode<?> parent)
UnsupportedOperationException
public Map<String,String> getPrefixDecls()
IPrefixDecls
Map
with
String
keys (prefix) and String
values (the uri
associated with that prefix).getPrefixDecls
in interface IPrefixDecls
public void setPrefixDecls(Map<String,String> prefixDecls)
IPrefixDecls
Map
with
String
keys (prefix) and String
values (the uri
associated with that prefix).setPrefixDecls
in interface IPrefixDecls
public void setDataset(DatasetNode dataset)
IDataSetNode
setDataset
in interface IDataSetNode
public DatasetNode getDataset()
IDataSetNode
getDataset
in interface IDataSetNode
public 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)
CoreBaseBOp
CoreBaseBOp.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.