public class ProjectionNode extends ValueExpressionListBaseNode<AssignmentNode>
Note: "*" is modeled using an explicit variable whose name is *
.
DEFAULT_INITIAL_CAPACITY
Constructor and Description |
---|
ProjectionNode() |
ProjectionNode(BOp[] args,
Map<String,Object> anns)
Shallow copy constructor.
|
ProjectionNode(ProjectionNode op)
Deep copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addProjectionExpression(AssignmentNode assignment) |
void |
addProjectionVar(VarNode var)
Adds a variable to be projected.
|
boolean |
excludeFromProjection(IVariable<?> var)
Checks if the variable is "blacklisted" to be excluded from
projection variables.
|
List<AssignmentNode> |
getAssignmentProjections()
Return the ordered subset of the value expressions which project a
computed value expression which is not a bare variable.
|
Integer |
getDescribeIterationLimit()
Return the optional limit on the #of iterations for a DESCRIBE query.
|
DescribeModeEnum |
getDescribeMode()
Return the
DescribeModeEnum that will be used to evaluate a
DESCRIBE query. |
Integer |
getDescribeStatementLimit()
Return the optional limit on the #of statements for a DESCRIBE query.
|
IVariable[] |
getProjectionVars()
Return the projected variables.
|
Set<IVariable<?>> |
getProjectionVars(Set<IVariable<?>> vars)
Return the projected variables.
|
Set<IVariable<?>> |
getSelectExprVars(Set<IVariable<?>> vars)
Collect the variables used by the SELECT EXPRESSIONS for this projection
node.
|
IValueExpression[] |
getValueExpressions()
Return the
IValueExpression s for this ProjectionNode . |
boolean |
isDistinct() |
boolean |
isReduced() |
boolean |
isWildcard() |
void |
setDescribeIterationLimit(int newValue)
Set the optional limit on the #of iterations for a DESCRIBE query.
|
void |
setDescribeMode(DescribeModeEnum describeMode)
Set the
DescribeModeEnum that will be used to evaluate a DESCRIBE
query. |
void |
setDescribeStatementLimit(int newValue)
Set the optional limit on the #of statements for a DESCRIBE query.
|
void |
setDistinct(boolean distinct) |
void |
setReduced(boolean reduced) |
void |
setVarsToExcludeFromProjection(Set<IVariable<?>> vars)
Makes a copy of vars the (new) black list for variables that are
not to be treated as projection variables.
|
String |
toString(int indent)
The contract of this method at this level is under-specified.
|
addExpr, getExpr, isEmpty, iterator, size
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 ProjectionNode()
public ProjectionNode(ProjectionNode op)
public void setDistinct(boolean distinct)
public boolean isDistinct()
public void setReduced(boolean reduced)
public boolean isReduced()
public boolean isWildcard()
public DescribeModeEnum getDescribeMode()
DescribeModeEnum
that will be used to evaluate a
DESCRIBE query.
Note: The default is governed by .
DescribeModeEnum
or null
if this has not
been explicitly specified.public void setDescribeMode(DescribeModeEnum describeMode)
DescribeModeEnum
that will be used to evaluate a DESCRIBE
query.
Note: The default is governed by .
describeMode
- The DescribeModeEnum
or null
to use the
default.Annotations#DESCRIBE_MODE
public Integer getDescribeIterationLimit()
null
.Annotations#DESCRIBE_ITERATION_LIMIT
public Integer getDescribeStatementLimit()
null
.Annotations#DESCRIBE_STATEMENT_LIMIT
public void setDescribeIterationLimit(int newValue)
public void setDescribeStatementLimit(int newValue)
public void addProjectionVar(VarNode var)
var
- The variable.public void addProjectionExpression(AssignmentNode assignment)
public void setVarsToExcludeFromProjection(Set<IVariable<?>> vars)
public List<AssignmentNode> getAssignmentProjections()
getAssignmentProjections()
and
getProjectionVars()
.public IVariable[] getProjectionVars()
public Set<IVariable<?>> getProjectionVars(Set<IVariable<?>> vars)
vars
- A set into which the projected variables will be added.public boolean excludeFromProjection(IVariable<?> var)
public Set<IVariable<?>> getSelectExprVars(Set<IVariable<?>> vars)
Note: This DOES NOT report the variables which are projected OUT of the query. It reports the variables on which those projected variables depend.
vars
- The variables are inserted into this set.public IValueExpression[] getValueExpressions()
IValueExpression
s for this ProjectionNode
.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.