public class BasicIntQueryHint extends AbstractQueryHint<Integer>
Constructor and Description |
---|
BasicIntQueryHint(String name,
Integer defaultValue) |
Modifier and Type | Method and Description |
---|---|
void |
handle(AST2BOpContext context,
QueryRoot queryRoot,
QueryHintScope scope,
ASTBase op,
Integer value)
Handle the query hint.
|
Integer |
validate(String value)
Validate the value, returning an object of the appropriate type.
|
_setAnnotation, _setQueryHint, getDefault, getName
public void handle(AST2BOpContext context, QueryRoot queryRoot, QueryHintScope scope, ASTBase op, Integer 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.public Integer validate(String value)
IQueryHint
value
- The value.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.