Class SpinxFunction
java.lang.Object
org.eclipse.rdf4j.spin.function.SpinxFunction
- All Implemented Interfaces:
Function, TransientFunction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArgument(Argument arg) evaluate(ValueFactory valueFactory, Value... args) Evaluate the function over the supplied input arguments, using the suppliedValueFactoryto produce the result.getURI()voidsetReturnType(IRI datatype) voidvoidsetScriptEngine(ScriptEngine engine) toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Function
evaluate, mustReturnDifferentResultModifier and TypeMethodDescriptiondefault Valueevaluate(TripleSource tripleSource, Value... args) Evaluate the function over the supplied input arguments.default booleanUUID() and STRUUID() must return a different result for each invocation.
-
Constructor Details
-
SpinxFunction
-
-
Method Details
-
setScriptEngine
-
getScriptEngine
-
setScript
-
getScript
-
setReturnType
-
getReturnType
-
addArgument
-
getArguments
-
toString
-
getURI
-
evaluate
Description copied from interface:FunctionEvaluate the function over the supplied input arguments, using the suppliedValueFactoryto produce the result.- Specified by:
evaluatein interfaceFunction- Parameters:
valueFactory- aValueFactoryto use for producing the function result.args- the function input arguments.- Returns:
- the function result value.
- Throws:
ValueExprEvaluationException
-