|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.bop.CoreBaseBOp
com.bigdata.bop.ModifiableBOpBase
com.bigdata.rdf.sparql.ast.ASTBase
com.bigdata.rdf.sparql.ast.ASTContainer
public class ASTContainer
A super container for the AST.
| Nested Class Summary | |
|---|---|
static interface |
ASTContainer.Annotations
|
| Field Summary |
|---|
| Fields inherited from class com.bigdata.bop.CoreBaseBOp |
|---|
DEFAULT_INITIAL_CAPACITY |
| Fields inherited from interface com.bigdata.bop.BOp |
|---|
NOANNS, NOARGS |
| Constructor Summary | |
|---|---|
ASTContainer(ASTContainer op)
Deep copy constructor. |
|
ASTContainer(BOp[] args,
Map<String,Object> annotations)
Shallow copy constructor. |
|
ASTContainer(QueryRoot queryRoot)
|
|
ASTContainer(UpdateRoot updateRoot)
|
|
| Method Summary | |
|---|---|
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. |
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. |
PipelineOp |
getQueryPlan()
Return the physical query plan (pipeline bops). |
String |
getQueryString()
Return the original query from which this AST model was generated. |
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 |
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 |
setQueryPlan(PipelineOp queryPlan)
Set the physical plan for query or update (pipeline bops). |
void |
setQueryString(String queryString)
Set the query string used to generate the AST model. |
String |
toString()
Return a non-recursive representation of the arguments and annotations for this BOp. |
| Methods inherited from class com.bigdata.rdf.sparql.ast.ASTBase |
|---|
getQueryHint, getQueryHint, getQueryHintAsBoolean, getQueryHintAsBoolean, getQueryHints, replaceAllWith, setQueryHint, setQueryHints |
| Methods inherited from class com.bigdata.bop.ModifiableBOpBase |
|---|
addArg, addArg, addArgIfAbsent, annotations, annotationsEqual, argIterator, args, arity, clearProperty, copyAll, get, getProperty, mutation, removeArg, replaceWith, setArg, setArgs, setId, setProperty, setUnboundProperty, toArray, toArray |
| Methods inherited from class com.bigdata.bop.CoreBaseBOp |
|---|
annotationsEqual, annotationsToString, checkArgs, clone, equals, getEvaluationContext, getId, getProperty, getRequiredProperty, hashCode, indent, isController, toShortString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ASTContainer(ASTContainer op)
public ASTContainer(BOp[] args,
Map<String,Object> annotations)
public ASTContainer(QueryRoot queryRoot)
public ASTContainer(UpdateRoot updateRoot)
| Method Detail |
|---|
public String getQueryString()
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 setOriginalAST(QueryRoot queryRoot)
public QueryRoot getOptimizedAST()
public void setOptimizedAST(QueryRoot queryRoot)
Note: You MUST deep copy the original AST to avoid destructive side
effects when the IASTOptimizers are run.
public void clearOptimizedAST()
DatasetNode).
public PipelineOp getQueryPlan()
public void setQueryPlan(PipelineOp queryPlan)
public String toString()
CoreBaseBOpBOp.
toString in interface BOptoString in class CoreBaseBOp
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||