Package org.apache.jena.sparql.function
Interface Function
-
- All Known Implementing Classes:
bnode,cartesian,collation,context,cos,cos1,cosec,cosec1,cot,cot1,cube,date,degreesToRadians,e,e,eval,evenInteger,execTime,factorial,FN_Abs,FN_AdjustDatetimeToTimezone,FN_AdjustDateToTimezone,FN_AdjustTimeToTimezone,FN_Apply,FN_BEV,FN_Ceiling,FN_CollationKey,FN_DateTime,FN_DaysFromDate,FN_DaysFromDateTime,FN_DaysFromDuration,FN_Error,FN_Floor,FN_FormatNumber,FN_HoursFromDateTime,FN_HoursFromDuration,FN_HoursFromTime,FN_Matches,FN_MinutesFromDateTime,FN_MinutesFromDuration,FN_MinutesFromTime,FN_MonthsFromDate,FN_MonthsFromDateTime,FN_MonthsFromDuration,FN_Not,FN_Round,FN_Round_Half_Even,FN_SecondsFromDateTime,FN_SecondsFromDuration,FN_SecondsFromTime,FN_StrAfter,FN_StrBefore,FN_StrConcat,FN_StrContains,FN_StrEncodeForURI,FN_StrEndsWith,FN_StrLength,FN_StrLowerCase,FN_StrNormalizeSpace,FN_StrNormalizeUnicode,FN_StrReplace,FN_StrStartsWith,FN_StrSubstring,FN_StrUpperCase,FN_Timezone,FN_TimezoneFromDate,FN_TimezoneFromDateTime,FN_TimezoneFromTime,FN_YearsFromDate,FN_YearsFromDateTime,FN_YearsFromDuration,FunctionBase,FunctionBase0,FunctionBase1,FunctionBase2,FunctionBase3,FunctionBase4,FunctionBase5,FunctionCastXSD,IsTripleTerm,langeq,ln,localname,log,Math_atan2,Math_exp,Math_exp10,Math_log,Math_log10,Math_pow,max,md5hash,min,namespace,now,nowtz,pi,pow,print,pythagoras,radiansToDegrees,reciprocal,rnd,root,ScriptFunction,sec,sec1,sha1sum,sha256hash,sin,sin1,sprintf,sq,sqrt,sqrt,strjoin,strlen,struuid,substr,substring,SystemVar,tan,tan1,ten,timezone,TripleObject,TriplePredicate,TripleSubject,TripleTerm,UserDefinedFunction,uuid,wait
public interface FunctionInterface to value-testing extensions to the expression evaluator.
-
-
Method Summary
All Methods Instance Methods Abstract 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.NodeValueexec(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
void build(java.lang.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, java.lang.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
-
-