public final class OptimizerQueryHint extends AbstractQueryHint<QueryOptimizerEnum>
Constructor and Description |
---|
OptimizerQueryHint() |
Modifier and Type | Method and Description |
---|---|
void |
handle(AST2BOpContext ctx,
QueryRoot queryRoot,
QueryHintScope scope,
ASTBase op,
QueryOptimizerEnum value)
Handle the query hint.
|
QueryOptimizerEnum |
validate(String value)
Validate the value, returning an object of the appropriate type.
|
_setAnnotation, _setQueryHint, getDefault, getName
public QueryOptimizerEnum validate(String value)
IQueryHint
value
- The value.public void handle(AST2BOpContext ctx, QueryRoot queryRoot, QueryHintScope scope, ASTBase op, QueryOptimizerEnum value)
IQueryHint
Note: The name of the query hint is no longer strongly coupled to the
name of the annotation. This method may be used to attach zero or more
annotations as appropriate to the AST structure. It may also be used to
change defaults in the AST2BOpContext
or take similar actions.
Note: When scope
EQ QueryHintScope.Query
, the
implementation SHOULD also act on AST2BOpContext.queryHints
,
setting the value in the global scope.
ctx
- The query evaluation context.queryRoot
- The root of the query. This is required to resolve the parent
of a query hint inside of a FILTER.scope
- The QueryHintScope
specified for the query hint.op
- An AST node to which the hint should bind.value
- The value specified for the query hint.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.