|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.server.repository.query.predicates.TextLikePredicate
public class TextLikePredicate
Special predicate that allows one to use a SQL like query to match literal values.
| Constructor Summary | |
|---|---|
TextLikePredicate()
|
|
| 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 FunctionalPredicate.setFunctionalTriplePattern(TriplePattern). |
java.lang.String |
getTextQuery()
Get the query text |
Variable |
getVariable()
Get the variable |
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()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextLikePredicate()
| Method Detail |
|---|
public void initialize(QueryInformation qi)
initialize in interface FunctionalPredicateqi - Information on the current query executingpublic boolean canBindGraphVariables()
canBindGraphVariables in interface FunctionalPredicatepublic Variable getVariable()
public java.lang.String getTextQuery()
public SolutionSet generateSolutions(IRIReference namedGraph,
Variable namedGraphVariable,
SolutionSet bindingConstraints)
throws GlitterException
FunctionalPredicate
generateSolutions in interface FunctionalPredicatenamedGraph - 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.
GlitterException
public boolean handlesTriplePattern(TriplePattern pattern)
throws FunctionalPredicateInvocationException
FunctionalPredicate
handlesTriplePattern in interface FunctionalPredicatepattern - A triple pattern from the same BGP that the functional triple
pattern came from.
FunctionalPredicateInvocationException
public void setFunctionalTriplePattern(TriplePattern pattern)
throws FunctionalPredicateInvocationException
FunctionalPredicate
setFunctionalTriplePattern in interface FunctionalPredicatepattern - the triple pattern which contains the functional predicate
FunctionalPredicateInvocationExceptionpublic boolean usesDataFromGraphs()
usesDataFromGraphs in interface FunctionalPredicatepublic double getCost(NodeCostModel costModel)
getCost in interface FunctionalPredicatecostModel - 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.
public TriplePattern getFunctionalTriplePattern()
FunctionalPredicateFunctionalPredicate.setFunctionalTriplePattern(TriplePattern).
getFunctionalTriplePattern in interface FunctionalPredicateTriplePattern that contains this functional predicate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||