public class BasicBooleanQueryHint extends AbstractBooleanQueryHint
Constructor and Description |
---|
BasicBooleanQueryHint(String name,
Boolean defaultValue) |
Modifier and Type | Method and Description |
---|---|
void |
handle(AST2BOpContext context,
QueryRoot queryRoot,
QueryHintScope scope,
ASTBase op,
Boolean value)
Handle the query hint.
|
validate
_setAnnotation, _setQueryHint, getDefault, getName
public void handle(AST2BOpContext context, QueryRoot queryRoot, QueryHintScope scope, ASTBase op, Boolean 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.
context
- 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.