T
- The generic type of the value space for the query hint.public interface IQueryHint<T>
Modifier and Type | Method and Description |
---|---|
T |
getDefault()
The default value for this query hint (many query hints provide overrides
of defaults).
|
String |
getName()
The name of the query hint.
|
void |
handle(AST2BOpContext ctx,
QueryRoot queryRoot,
QueryHintScope scope,
ASTBase op,
T value)
Handle the query hint.
|
T |
validate(String value)
Validate the value, returning an object of the appropriate type.
|
String getName()
T getDefault()
T validate(String value)
value
- The value.RuntimeException
- if the value can not be validated.void handle(AST2BOpContext ctx, QueryRoot queryRoot, QueryHintScope scope, ASTBase op, T value)
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.