Class FN_MapComputeIfAbsent
java.lang.Object
org.apache.jena.sparql.function.FunctionBase
org.apache.jena.sparql.function.FunctionBase3
org.aksw.jena_sparql_api.sparql.ext.sys.FN_MapComputeIfAbsent
- All Implemented Interfaces:
org.apache.jena.sparql.function.Function
public class FN_MapComputeIfAbsent
extends org.apache.jena.sparql.function.FunctionBase3
A function that returns an RDF term that encapsulates a lambda.
The last argument of fn.of is the expression, all prior arguments
are considered parameter variable declarations.
BIND(norse:map.computeIfAbsent('mapId', ?key, lambda) AS ?value)
- Author:
- raven
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.apache.jena.sparql.util.SymbolSymbol for a guava table in the exec cxt -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.jena.sparql.expr.NodeValueexec(List<org.apache.jena.sparql.expr.NodeValue> args, org.apache.jena.sparql.function.FunctionEnv env) org.apache.jena.sparql.expr.NodeValueexec(org.apache.jena.sparql.expr.NodeValue v1, org.apache.jena.sparql.expr.NodeValue v2, org.apache.jena.sparql.expr.NodeValue v3) static com.google.common.collect.Table<org.apache.jena.sparql.expr.NodeValue,org.apache.jena.sparql.expr.NodeValue, org.apache.jena.sparql.expr.NodeValue> getOrCreateTable(org.apache.jena.sparql.util.Context cxt) Methods inherited from class org.apache.jena.sparql.function.FunctionBase3
checkBuild, execMethods inherited from class org.apache.jena.sparql.function.FunctionBase
build, exec
-
Field Details
-
symTable
public static org.apache.jena.sparql.util.Symbol symTableSymbol for a guava table in the exec cxt
-
-
Constructor Details
-
FN_MapComputeIfAbsent
public FN_MapComputeIfAbsent()
-
-
Method Details
-
getOrCreateTable
public static com.google.common.collect.Table<org.apache.jena.sparql.expr.NodeValue,org.apache.jena.sparql.expr.NodeValue, getOrCreateTableorg.apache.jena.sparql.expr.NodeValue> (org.apache.jena.sparql.util.Context cxt) -
exec
protected org.apache.jena.sparql.expr.NodeValue exec(List<org.apache.jena.sparql.expr.NodeValue> args, org.apache.jena.sparql.function.FunctionEnv env) - Overrides:
execin classorg.apache.jena.sparql.function.FunctionBase
-
exec
public org.apache.jena.sparql.expr.NodeValue exec(org.apache.jena.sparql.expr.NodeValue v1, org.apache.jena.sparql.expr.NodeValue v2, org.apache.jena.sparql.expr.NodeValue v3) - Specified by:
execin classorg.apache.jena.sparql.function.FunctionBase3
-