com.hp.hpl.jena.sparql.function
Interface Function
- All Known Implementing Classes:
- bnode, cube, date, e, e, eval, evenInteger, FN_Abs, FN_BEV, FN_Ceiling, FN_DayFromDateTime, FN_DaysFromDuration, FN_Floor, FN_HoursFromDateTime, FN_HoursFromDuration, FN_Matches, FN_MinutesFromDateTime, FN_MinutesFromDuration, FN_MonthFromDateTime, FN_MonthsFromDuration, FN_Not, FN_Round, FN_SecondsFromDateTime, FN_SecondsFromDuration, FN_StrAfter, FN_StrBefore, FN_StrConcat, FN_StrContains, FN_StrEncodeForURI, FN_StrEndsWith, FN_StrLength, FN_StrLowerCase, FN_StrStartsWith, FN_StrSubstring, FN_StrUpperCase, FN_TimezoneFromDateTime, FN_YearFromDateTime, FN_YearsFromDuration, FunctionBase, FunctionBase0, FunctionBase1, FunctionBase2, FunctionBase3, FunctionBase4, langeq, localname, max, min, namespace, now, pi, pow, print, sha1sum, sq, sqrt, strjoin, strlen, struuid, substr, substring, SystemVar, UserDefinedFunction, uuid, 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. |
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 arguments
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 solutionargs - A list of unevaluated expressionsuri - The name of thisenv - The execution context
- Returns:
- NodeValue - a value
Licenced under the Apache License, Version 2.0