|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.rdf.sparql.ast.hints.AbstractChunkSizeHint
public abstract class AbstractChunkSizeHint
| Constructor Summary | |
|---|---|
AbstractChunkSizeHint(String name,
Integer defaultValue)
|
|
| Method Summary | |
|---|---|
protected void |
_setAnnotation(IEvaluationContext ctx,
QueryHintScope scope,
ASTBase op,
String name,
T value)
Set an annotation on the AST node. |
protected void |
_setQueryHint(IEvaluationContext ctx,
QueryHintScope scope,
ASTBase op,
String name,
T value)
Set the query hint. |
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 context,
QueryHintScope scope,
ASTBase op,
Integer value)
Handle the query hint. |
Integer |
validate(String value)
Validate the value, returning an object of the appropriate type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractChunkSizeHint(String name,
Integer defaultValue)
name - defaultValue - | Method Detail |
|---|
public void handle(AST2BOpContext context,
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.
context - The query evaluation context.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.
public final String getName()
IQueryHint
getName in interface IQueryHint<T>public final T getDefault()
IQueryHint
getDefault in interface IQueryHint<T>
protected final void _setQueryHint(IEvaluationContext ctx,
QueryHintScope scope,
ASTBase op,
String name,
T value)
Note: Query hints are Properties objects and their values are
Strings. The value will be converted to a String.
Note: Unlike annotations, query hints are propagated en-mass from an AST node to the generated pipeline operator.
name - The name of the query hint.value - The value for the query hint.
protected final void _setAnnotation(IEvaluationContext ctx,
QueryHintScope scope,
ASTBase op,
String name,
T value)
Note: Annotations are attached directly to the AST node. They are
interpreted during query plan generation. Unlike the query hints, the
annotations are not automatically transferred to the generated pipeline
operators. Instead, they typically control the behavior of the
IASTOptimizers.
op - The AST node.name - The name of the annotation.value - The value of the annotation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||