com.hp.hpl.jena.sparql.function
Interface Function

All Known Implementing Classes:
bnode, date, e, eval, evenInteger, FN_Abs, FN_BEV, FN_Ceiling, FN_floor, FN_Matches, FN_Not, FN_Round, FN_StrConcat, FN_StrContains, FN_StrEndsWith, FN_StrLength, FN_StrLowerCase, FN_StrStartsWith, FN_StrSubstring, FN_StrUpperCase, FunctionBase, FunctionBase0, FunctionBase1, FunctionBase2, FunctionBase3, FunctionBase4, langeq, localname, max, min, namespace, now, pi, sha1sum, sqrt, strjoin, strlen, substr, substring, SystemVar, wait

public interface Function

Interface to value-testing extensions to the expression evaluator.


Method Summary
 void build(String uri, ExprList args)
          Called during query plan construction immediately after the construction of the extension instance.
 NodeValue exec(Binding binding, ExprList args, String uri, FunctionEnv env)
          Test a list of values - argument will not be null but may have the wrong number of arguments.
 

Method Detail

build

void build(String uri,
           ExprList args)
Called during query plan construction immediately after the construction of the extension instance. Can throw ExprBuildException if something is wrong (like wrong number of arguments).

Parameters:
args - The parsed arguements

exec

NodeValue exec(Binding binding,
               ExprList args,
               String uri,
               FunctionEnv env)
Test a list of values - argument will not be null but may have the wrong number of arguments. FunctionBase provides a more convenient way to implement a function. Can throw ExprEvalsException if something goes wrong.

Parameters:
binding - The current solution
args - A list of unevaluated expressions
uri - The name of this
env - The execution context
Returns:
NodeValue - a value


Licenced under the Apache License, Version 2.0