|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FunctionalPredicate
A FunctionalPredicate is a URI that generates bindings/solutions to a query in a different
fashion from the standard graph-pattern matching.
| Method Summary | |
|---|---|
boolean |
canBindGraphVariables()
|
SolutionSet |
generateSolutions(IRIReference namedGraph,
Variable namedGraphVariable,
SolutionSet bindingConstraints)
Requests that solutions be generated against the default graph, a particular named graph, or spanning the named graphs (with a named graph variable). |
double |
getCost(NodeCostModel costModel)
|
TriplePattern |
getFunctionalTriplePattern()
Accessor for the triple pattern set with setFunctionalTriplePattern(TriplePattern). |
boolean |
handlesTriplePattern(TriplePattern pattern)
After setFunctionalTriplePattern has been called, this method is called once for every triple pattern in the functional triple pattern's basic graph pattern (BGP). |
void |
initialize(QueryInformation qi)
|
void |
setFunctionalTriplePattern(TriplePattern pattern)
This is the first method invoked on a FunctionalPredicate. |
boolean |
usesDataFromGraphs()
|
| Method Detail |
|---|
void initialize(QueryInformation qi)
qi - Information on the current query executingboolean canBindGraphVariables()
boolean usesDataFromGraphs()
void setFunctionalTriplePattern(TriplePattern pattern)
throws FunctionalPredicateInvocationException
pattern - the triple pattern which contains the functional predicate
FunctionalPredicateInvocationExceptionTriplePattern getFunctionalTriplePattern()
setFunctionalTriplePattern(TriplePattern).
TriplePattern that contains this functional predicate.
boolean handlesTriplePattern(TriplePattern pattern)
throws FunctionalPredicateInvocationException
pattern - A triple pattern from the same BGP that the functional triple
pattern came from.
FunctionalPredicateInvocationException
SolutionSet generateSolutions(IRIReference namedGraph,
Variable namedGraphVariable,
SolutionSet bindingConstraints)
throws GlitterException
namedGraph - If not null, the named graph to use for generating bindingsnamedGraphVariable - If not null, the functional predicate should generate solutions
that bind this variable to the appropriate graph IRI for each solution generated.bindingConstraints - Existing constraints on variables. This FunctionalPredicate can assume
that the engine will conjoin the solutions it returns with these constraints. (And so can eliminate any
solutions that would not add to a result set, if it wishes.)
SolutionSet from generating bindings using the logic of this functional predicate.
GlitterExceptiondouble getCost(NodeCostModel costModel)
costModel - The cost model being used to generate an execution plan. This functional
predicate can investigate the cost of various other types of nodes using this supplied
cost model in order to generate its own estimate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||