public class ASTContainer extends ASTBase
Modifier and Type | Class and Description |
---|---|
static interface |
ASTContainer.Annotations |
DEFAULT_INITIAL_CAPACITY
Constructor and Description |
---|
ASTContainer(ASTContainer op)
Deep copy constructor.
|
ASTContainer(BOp[] args,
Map<String,Object> annotations)
Shallow copy constructor.
|
ASTContainer(QueryRoot queryRoot) |
ASTContainer(UpdateRoot updateRoot) |
Modifier and Type | Method and Description |
---|---|
void |
clearOptimizedAST()
Clears the optimized AST model (necessary when something on which it
depends has been changed in the original AST model, for example, if you
replace the
DatasetNode ). |
QueryRoot |
getOptimizedAST()
Return the optimized AST model.
|
IBindingSet[] |
getOptimizedASTBindingSets()
Return the incoming binding sets associated with the optimized AST.
|
QueryRoot |
getOriginalAST()
Return the original AST model (before any optimization).
|
UpdateRoot |
getOriginalUpdateAST()
Return the original AST model (before any optimization).
|
Object |
getParseTree()
Return the parse tree generated from the query string.
|
Long |
getQueryParseTime()
Get the query parse time in nanoseconds.
|
PipelineOp |
getQueryPlan()
Return the physical query plan (pipeline bops).
|
String |
getQueryString()
Return the original SPARQL QUERY -or- UPDATE from which this AST model was
generated.
|
Long |
getResolveValuesTime()
Get the resolve values time in nanoseconds.
|
boolean |
isQuery()
Return
true iff this ASTContainer models a SPARQL
QUERY operation. |
boolean |
isUpdate()
Return
true iff this ASTContainer models a SPARQL
UPDATE operation. |
void |
setOptimizedAST(QueryRoot queryRoot)
Set the optimized AST model.
|
void |
setOptimizedASTBindingSets(IBindingSet[] bindingSets)
Set the incoming binding sets associated with the optimized AST.
|
void |
setOriginalAST(QueryRoot queryRoot)
Set the original AST model (before any optimizations).
|
void |
setOriginalUpdateAST(UpdateRoot updateRoot)
Set the original AST model (before any optimizations).
|
void |
setParseTree(Object parseTree)
Set the parse tree generated from the query string.
|
void |
setQueryParseTime(Long parseTime)
Set the query parse time in nanoseconds.
|
void |
setQueryPlan(PipelineOp queryPlan)
Set the physical plan for query or update (pipeline bops).
|
void |
setQueryString(String queryString)
Set the SPARQL QUERY -or- UPDATE string used to generate the AST model.
|
void |
setResolveValuesTime(Long nanos)
Set the RDF value resolution time in nanoseconds.
|
String |
toString()
Return a non-recursive representation of the arguments and annotations
for this
BOp . |
addExplainHint, getExplainHints, getQueryHint, getQueryHint, getQueryHintAsBoolean, getQueryHintAsBoolean, getQueryHintAsInteger, getQueryHints, 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, toString
public ASTContainer(ASTContainer op)
public ASTContainer(BOp[] args, Map<String,Object> annotations)
public ASTContainer(QueryRoot queryRoot)
public ASTContainer(UpdateRoot updateRoot)
public String getQueryString()
null
if the AST
was not generated by the parser.public void setQueryString(String queryString)
queryString
- The query string.public Object getParseTree()
public void setParseTree(Object parseTree)
parseTree
- The parse tree (may be null
).public boolean isUpdate()
true
iff this ASTContainer
models a SPARQL
UPDATE operation.public boolean isQuery()
true
iff this ASTContainer
models a SPARQL
QUERY operation.public UpdateRoot getOriginalUpdateAST()
public void setOriginalUpdateAST(UpdateRoot updateRoot)
public QueryRoot getOriginalAST()
public void setOptimizedASTBindingSets(IBindingSet[] bindingSets)
public IBindingSet[] getOptimizedASTBindingSets()
public void setOriginalAST(QueryRoot queryRoot)
public QueryRoot getOptimizedAST()
public void setQueryParseTime(Long parseTime)
public Long getQueryParseTime()
public void setResolveValuesTime(Long nanos)
public Long getResolveValuesTime()
public void setOptimizedAST(QueryRoot queryRoot)
Note: You MUST deep copy the original AST to avoid destructive side
effects when the IASTOptimizer
s are run.
public void clearOptimizedAST()
DatasetNode
).public PipelineOp getQueryPlan()
public void setQueryPlan(PipelineOp queryPlan)
public String toString()
CoreBaseBOp
BOp
.toString
in interface BOp
toString
in class CoreBaseBOp
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.