public class AST2BOpBase extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
AST2BOpBase.Annotations
Annotations used to mark named and default graph patterns on the
IPredicate s. |
Modifier | Constructor and Description |
---|---|
protected |
AST2BOpBase() |
Modifier and Type | Method and Description |
---|---|
protected static PipelineOp |
applyQueryHints(PipelineOp op,
ASTBase node,
AST2BOpContext ctx)
Apply any query hints to the operator as annotations of that operator.
|
protected static PipelineOp |
applyQueryHints(PipelineOp op,
Properties nodeQueryHints,
AST2BOpContext ctx)
Apply any query hints to the operator as annotations of that operator.
|
protected static BOp[] |
leftOrEmpty(PipelineOp left)
Return either left wrapped as the sole member of an array or
BOp.NOARGS iff left is null . |
protected static BOp[] leftOrEmpty(PipelineOp left)
BOp.NOARGS
iff left is null
.left
- The prior operator in the pipeline (optional).protected static PipelineOp applyQueryHints(PipelineOp op, ASTBase node, AST2BOpContext ctx)
Note: This method is responsible for transferring query hints from
ASTBase.getQueryHints()
onto a generated PipelineOp
.
op
- The pipeline operator generated from some AST node.node
- The AST node from which the pipeline operator was generated
(required). The query hints (from
ASTBase.getQueryHints()
) will be applied to that
pipeline operator.ctx
- The evaluation context (ignored). Global query hints declared
here will be applied to the generated pipeline operator.
Global hints are applied first so they can be
override by AST node specific hints.protected static PipelineOp applyQueryHints(PipelineOp op, Properties nodeQueryHints, AST2BOpContext ctx)
Note: This method is responsible for transferring query hints from
ASTBase.getQueryHints()
onto a generated PipelineOp
.
Note: This alternative form is for use within caller contexts in which
(due to historical reasons) we have the query hints object for the AST
node, but not the AST node itself. This pattern shows up in the join()
methods since the StatementPatternNode
is not passed through.
op
- The pipeline operator generated from some AST node (required).nodeQueryHints
- The query hints for the AST node from which the pipeline
operator was generated or its dominating operator context
since not all operators have query hints applied (required).ctx
- The evaluation context (ignored). Global query hints declared
here will be applied to the generated pipeline operator.
Global hints are applied first so they can be
override by AST node specific hints.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.