public class TupleFunctionEvaluationStrategy extends Object implements EvaluationStrategy, UUIDable
EvaluationStrategy that adds support for TupleFunctions
to an existing EvaluationStrategy.| Constructor and Description |
|---|
TupleFunctionEvaluationStrategy(EvaluationStrategy delegate,
ValueFactory valueFactory) |
TupleFunctionEvaluationStrategy(EvaluationStrategy delegate,
ValueFactory valueFactory,
TupleFunctionRegistry tupleFuncRegistry) |
| Modifier and Type | Method and Description |
|---|---|
CloseableIteration<BindingSet,QueryEvaluationException> |
evaluate(Service expr,
String serviceUri,
CloseableIteration<BindingSet,QueryEvaluationException> bindings)
Evaluates the tuple expression against the supplied triple source with the
specified set of variable bindings as input.
|
CloseableIteration<BindingSet,QueryEvaluationException> |
evaluate(TupleExpr expr,
BindingSet bindings)
Evaluates the tuple expression against the supplied triple source with the
specified set of variable bindings as input.
|
CloseableIteration<BindingSet,QueryEvaluationException> |
evaluate(TupleFunctionCall expr,
BindingSet bindings) |
static CloseableIteration<BindingSet,QueryEvaluationException> |
evaluate(TupleFunction func,
List<Var> resultVars,
BindingSet bindings,
ValueFactory valueFactory,
Value... argValues) |
Value |
evaluate(ValueExpr expr,
BindingSet bindings)
Gets the value of this expression.
|
FederatedService |
getService(String serviceUrl)
Retrieve the
FederatedService registered for serviceUrl. |
UUID |
getUUID() |
boolean |
isTrue(ValueExpr expr,
BindingSet bindings)
Evaluates the boolean expression on the supplied TripleSource object.
|
public TupleFunctionEvaluationStrategy(EvaluationStrategy delegate, ValueFactory valueFactory)
public TupleFunctionEvaluationStrategy(EvaluationStrategy delegate, ValueFactory valueFactory, TupleFunctionRegistry tupleFuncRegistry)
public FederatedService getService(String serviceUrl) throws QueryEvaluationException
EvaluationStrategyFederatedService registered for serviceUrl. If there
is no service registered for serviceUrl, a new
SPARQLFederatedService is created and registered.getService in interface EvaluationStrategygetService in interface FederatedServiceResolverserviceUrl - URL of the service.FederatedService registered for the serviceUrl.QueryEvaluationExceptionFederatedServiceResolver.getService(java.lang.String)public CloseableIteration<BindingSet,QueryEvaluationException> evaluate(Service expr, String serviceUri, CloseableIteration<BindingSet,QueryEvaluationException> bindings) throws QueryEvaluationException
EvaluationStrategyevaluate in interface EvaluationStrategyexpr - The Service Expression to evaluateserviceUri - TODObindings - The variables bindings iterator to use for evaluating the
expression, if applicable.QueryEvaluationExceptionpublic CloseableIteration<BindingSet,QueryEvaluationException> evaluate(TupleExpr expr, BindingSet bindings) throws QueryEvaluationException
EvaluationStrategyevaluate in interface EvaluationStrategyexpr - The Tuple Expression to evaluatebindings - The variables bindings to use for evaluating the expression, if
applicable.QueryEvaluationExceptionpublic CloseableIteration<BindingSet,QueryEvaluationException> evaluate(TupleFunctionCall expr, BindingSet bindings) throws QueryEvaluationException
QueryEvaluationExceptionpublic Value evaluate(ValueExpr expr, BindingSet bindings) throws QueryEvaluationException
EvaluationStrategyevaluate in interface EvaluationStrategybindings - The variables bindings to use for evaluating the expression, if
applicable.QueryEvaluationExceptionpublic boolean isTrue(ValueExpr expr, BindingSet bindings) throws QueryEvaluationException
EvaluationStrategyisTrue in interface EvaluationStrategybindings - The variables bindings to use for evaluating the expression, if
applicable.ValueExprEvaluationException - If the value expression could not be evaluated, for example when
comparing two incompatible operands. When thrown, the result of
the boolean expression is neither true nor false
, but unknown.QueryEvaluationExceptionpublic static CloseableIteration<BindingSet,QueryEvaluationException> evaluate(TupleFunction func, List<Var> resultVars, BindingSet bindings, ValueFactory valueFactory, Value... argValues) throws QueryEvaluationException
QueryEvaluationExceptionCopyright © 2001-2016 Aduna. All Rights Reserved.