com.hp.hpl.jena.graph.query
Class ConstraintStage
java.lang.Object
com.hp.hpl.jena.graph.query.Stage
com.hp.hpl.jena.graph.query.ConstraintStage
public class ConstraintStage
- extends Stage
A ConstraintStage implements the constraint evaluation part of a
query. Any constraints not handled by previous PatternStages are prepared
against the mapping and valuated against each binding that comes down
the pipe; only bindings that evaluate to true
are passed onward.
- Author:
- kers
Fields inherited from class com.hp.hpl.jena.graph.query.Stage |
stillOpen |
Constructor Summary |
ConstraintStage(Mapping map,
ExpressionSet constraint)
Initialise this ConstraintStage with the mapping [from names to indexes] and
ExpressionSet [the constraint expressions] that will be evaluated when the
constraint stage runs. |
Method Summary |
Pipe |
deliver(Pipe L)
the delivery component: read the domain elements out of the
input pipe, and only pass on those that satisfy the predicate. |
ConstraintStage
public ConstraintStage(Mapping map,
ExpressionSet constraint)
- Initialise this ConstraintStage with the mapping [from names to indexes] and
ExpressionSet [the constraint expressions] that will be evaluated when the
constraint stage runs.
deliver
public Pipe deliver(Pipe L)
- the delivery component: read the domain elements out of the
input pipe, and only pass on those that satisfy the predicate.
- Specified by:
deliver
in class Stage
Licenced under the Apache License, Version 2.0