public class ASTQueryHintOptimizer extends Object implements IASTOptimizer
scopeURL propertyURL valueWhere scope is any of the
QueryHintScope
s; and
Once recognized, query hints are removed from the AST. All query hints are
declared internally using interfaces. It is an error if the specified query
hint has not been registered with the QueryHintRegistry
, if the
IQueryHint
can not validate the value, if the QueryHintScope
is not legal for the IQueryHint
, etc.
For example:
... { # query hint binds for this join group. hint:Group hint:com.bigdata.bop.PipelineOp.maxParallel 10 ... # query hint binds for the next basic graph pattern in this join group. hint:Prior hint:com.bigdata.relation.accesspath.IBuffer.chunkCapacity 100 ?x rdf:type foaf:Person . }
QueryHints
,
QueryHintScope
Constructor and Description |
---|
ASTQueryHintOptimizer() |
Modifier and Type | Method and Description |
---|---|
QueryNodeWithBindingSet |
optimize(AST2BOpContext context,
QueryNodeWithBindingSet input)
Optimize the AST.
|
public QueryNodeWithBindingSet optimize(AST2BOpContext context, QueryNodeWithBindingSet input)
IASTOptimizer
optimize
in interface IASTOptimizer
context
- The evaluation context.input
- The input to the optimizer, consisting of a queryNode and
input binding set.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.