public class QuadsDataOrNamedSolutionSet extends QueryNodeBase implements INamedSolutionSet, IProjectionDecl
QuadData
or a named solution set in
support of the INSERT clause and DELETE clause of a DeleteInsertGraph
operations. Use isQuads()
or isSolutions()
to identify how
this AST node should be interpreted.DeleteInsertGraph
AST node.Modifier and Type | Class and Description |
---|---|
static interface |
QuadsDataOrNamedSolutionSet.Annotations |
DEFAULT_INITIAL_CAPACITY
Constructor and Description |
---|
QuadsDataOrNamedSolutionSet(BOp[] args,
Map<String,Object> annotations) |
QuadsDataOrNamedSolutionSet(QuadData quadData) |
QuadsDataOrNamedSolutionSet(QuadsDataOrNamedSolutionSet op) |
QuadsDataOrNamedSolutionSet(String namedSet) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Return the name of the solution set.
|
Set<IVariable<?>> |
getProjectedVars(Set<IVariable<?>> vars)
Return the set of variables projected out of this query (this is a NOP if
there is no
ProjectionNode for the query, which can happen for an
ASK query). |
ProjectionNode |
getProjection()
Return the projection -or-
null if there is no projection. |
QuadData |
getQuadData()
Return the
QuadData template. |
boolean |
isQuads()
Return
true iff this models QUADS data (rather than named
solutions) |
boolean |
isSolutions()
Return
true iff this models a reference to some named
solutions (rather than QUADS data). |
void |
setName(String name)
Set the name of the solution set.
|
void |
setProjection(ProjectionNode projection)
Set or clear the projection.
|
void |
setQuadData(QuadData data) |
String |
toString(int indent)
The contract of this method at this level is under-specified.
|
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
getProperty
public QuadsDataOrNamedSolutionSet(QuadsDataOrNamedSolutionSet op)
op
- public QuadsDataOrNamedSolutionSet(BOp[] args, Map<String,Object> annotations)
args
- annotations
- public QuadsDataOrNamedSolutionSet(QuadData quadData)
public QuadsDataOrNamedSolutionSet(String namedSet)
public void setQuadData(QuadData data)
public boolean isQuads()
true
iff this models QUADS data (rather than named
solutions)public boolean isSolutions()
true
iff this models a reference to some named
solutions (rather than QUADS data).public String getName()
INamedSolutionSet
getName
in interface INamedSolutionSet
public void setName(String name)
INamedSolutionSet
setName
in interface INamedSolutionSet
name
- The name of the solution set.public void setProjection(ProjectionNode projection)
IProjectionDecl
setProjection
in interface IProjectionDecl
projection
- The projection (may be null
).public ProjectionNode getProjection()
IProjectionDecl
null
if there is no projection.getProjection
in interface IProjectionDecl
public Set<IVariable<?>> getProjectedVars(Set<IVariable<?>> vars)
IProjectionDecl
ProjectionNode
for the query, which can happen for an
ASK query). This DOES NOT report the variables which are used by the
SELECT expressions, just the variables which are PROJECTED out by the
BINDs.getProjectedVars
in interface IProjectionDecl
vars
- The projected variables are added to this set.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.toString
in interface BOp
toString
in interface IQueryNode
toString
in class CoreBaseBOp
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.