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, 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, toShortStringgetPropertypublic 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()
INamedSolutionSetgetName in interface INamedSolutionSetpublic void setName(String name)
INamedSolutionSetsetName in interface INamedSolutionSetname - The name of the solution set.public void setProjection(ProjectionNode projection)
IProjectionDeclsetProjection in interface IProjectionDeclprojection - The projection (may be null).public ProjectionNode getProjection()
IProjectionDeclnull if there is no projection.getProjection in interface IProjectionDeclpublic Set<IVariable<?>> getProjectedVars(Set<IVariable<?>> vars)
IProjectionDeclProjectionNode 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 IProjectionDeclvars - The projected variables are added to this set.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.toString in interface BOptoString in interface IQueryNodetoString in class CoreBaseBOpCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.