public class ASTBase extends ModifiableBOpBase
Modifier and Type | Class and Description |
---|---|
static interface |
ASTBase.Annotations |
DEFAULT_INITIAL_CAPACITY
Constructor and Description |
---|
ASTBase(ASTBase op)
Constructor required for
com.bigdata.bop.BOpUtility#deepCopy(FilterNode) . |
ASTBase(BOp[] args,
Map<String,Object> annotations)
Required shallow copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addExplainHint(IExplainHint explainHint)
Add an explain hint to the query.
|
ExplainHints |
getExplainHints()
Return the explain hints associated with this AST node
|
String |
getQueryHint(String name)
Return the value of the query hint.
|
String |
getQueryHint(String name,
String defaultValue)
Return the value of the query hint.
|
boolean |
getQueryHintAsBoolean(String name,
boolean defaultValue)
Return the boolean value of the query hint.
|
boolean |
getQueryHintAsBoolean(String name,
String defaultValue)
Return the boolean value of the query hint.
|
Integer |
getQueryHintAsInteger(String name,
Integer defaultValue)
Return the Integer value of the query hint.
|
Properties |
getQueryHints()
Return the query hints for this AST node.
|
int |
replaceAllWith(BOp oldVal,
BOp newVal)
Replace all occurrences of the old value with the new value in both the
arguments and annotations of this operator (recursive).
|
void |
setQueryHint(String name,
String value)
Set a query hint.
|
void |
setQueryHints(Properties queryHints)
Set the query hints.
|
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, toString
public ASTBase(ASTBase op)
com.bigdata.bop.BOpUtility#deepCopy(FilterNode)
.public Properties getQueryHints()
null
if none have been
declared.public ExplainHints getExplainHints()
null
if none have been
declared.public String getQueryHint(String name)
name
- The name of the query hint.null
if the query
hint is not defined.public String getQueryHint(String name, String defaultValue)
name
- The name of the query hint.defaultValue
- The default value to use if the query hint is not defined.public boolean getQueryHintAsBoolean(String name, String defaultValue)
name
- The name of the query hint.defaultValue
- The default value to use if the query hint is not defined.public boolean getQueryHintAsBoolean(String name, boolean defaultValue)
name
- The name of the query hint.defaultValue
- The default value to use if the query hint is not defined.public Integer getQueryHintAsInteger(String name, Integer defaultValue)
name
- The name of the query hint.defaultValue
- The default value to use if the query hint is not defined.public void setQueryHints(Properties queryHints)
queryHints
- The query hints (may be null
).QueryHints
public void addExplainHint(IExplainHint explainHint)
explainHint
- the hint to add, ignored if nullpublic void setQueryHint(String name, String value)
name
- The property name for the query hint.value
- The property value for the query hint.public int replaceAllWith(BOp oldVal, BOp newVal)
CoreBaseBOp.equals(Object)
.oldVal
- The old value.newVal
- The new value.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.