Package org.apache.jena.sparql.function
Class FunctionBase
- java.lang.Object
-
- org.apache.jena.sparql.function.FunctionBase
-
- All Implemented Interfaces:
Function
- Direct Known Subclasses:
cartesian,context,execTime,FN_AdjustDatetimeToTimezone,FN_AdjustDateToTimezone,FN_AdjustTimeToTimezone,FN_Apply,FN_Error,FN_FormatNumber,FN_Round,FN_Round_Half_Even,FN_StrConcat,FN_StrNormalizeUnicode,FN_StrReplace,FN_StrSubstring,FunctionBase0,FunctionBase1,FunctionBase2,FunctionBase3,FunctionBase4,FunctionBase5,log,rnd,ScriptFunction,sprintf,strjoin,substring
public abstract class FunctionBase extends java.lang.Object implements Function
Implementation root for custom function evaluation.
-
-
Constructor Summary
Constructors Constructor Description FunctionBase()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbuild(java.lang.String uri, ExprList args)Called during query plan construction immediately after the construction of the extension instance.abstract voidcheckBuild(java.lang.String uri, ExprList args)static java.util.List<NodeValue>evalArgs(Binding binding, ExprList args, FunctionEnv env)abstract NodeValueexec(java.util.List<NodeValue> args)Function call to a list of evaluated argument valuesNodeValueexec(Binding binding, ExprList args, java.lang.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
public final void build(java.lang.String uri, ExprList args)Description copied from interface:FunctionCalled during query plan construction immediately after the construction of the extension instance. Can throw ExprBuildException if something is wrong (like wrong number of arguments).
-
exec
public NodeValue exec(Binding binding, ExprList args, java.lang.String uri, FunctionEnv env)
Description copied from interface:FunctionTest 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.
-
evalArgs
public static java.util.List<NodeValue> evalArgs(Binding binding, ExprList args, FunctionEnv env)
-
exec
public abstract NodeValue exec(java.util.List<NodeValue> args)
Function call to a list of evaluated argument values
-
checkBuild
public abstract void checkBuild(java.lang.String uri, ExprList args)
-
-