public abstract class AbstractQueryHint<T> extends Object implements IQueryHint<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractQueryHint(String name,
T defaultValue) |
Modifier and Type | Method and Description |
---|---|
protected void |
_setAnnotation(IEvaluationContext ctx,
QueryHintScope scope,
ASTBase op,
String name,
T value)
Set an annotation on the AST node.
|
protected void |
_setQueryHint(IEvaluationContext ctx,
QueryHintScope scope,
ASTBase op,
String name,
T value)
Set the query hint.
|
T |
getDefault()
The default value for this query hint (many query hints provide overrides
of defaults).
|
String |
getName()
The name of the query hint.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handle, validate
public final String getName()
IQueryHint
getName
in interface IQueryHint<T>
public final T getDefault()
IQueryHint
getDefault
in interface IQueryHint<T>
protected final void _setQueryHint(IEvaluationContext ctx, QueryHintScope scope, ASTBase op, String name, T value)
Note: Query hints are Properties
objects and their values are
String
s. The value will be converted to a String.
Note: Unlike annotations, query hints are propagated en-mass from an AST node to the generated pipeline operator.
name
- The name of the query hint.value
- The value for the query hint.protected final void _setAnnotation(IEvaluationContext ctx, QueryHintScope scope, ASTBase op, String name, T value)
Note: Annotations are attached directly to the AST node. They are
interpreted during query plan generation. Unlike the query hints, the
annotations are not automatically transferred to the generated pipeline
operators. Instead, they typically control the behavior of the
IASTOptimizer
s.
op
- The AST node.name
- The name of the annotation.value
- The value of the annotation.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.