java.lang.Object
org.apache.jena.sparql.expr.ExprNode
org.apache.jena.sparql.expr.ExprFunction
org.apache.jena.sparql.expr.ExprFunctionN
org.apache.jena.sparql.expr.E_Function
- All Implemented Interfaces:
Expr
SPARQL filter function
-
Field Summary
FieldsFields inherited from interface org.apache.jena.sparql.expr.Expr
CMP_EQUAL, CMP_GREATER, CMP_INDETERMINATE, CMP_LESS, CMP_UNEQUAL, NONE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildFunction
(Context cxt) boolean
General equality operation - consider this to be 'protected'evalSpecial
(Binding binding, FunctionEnv env) URI for this function, whether custom or specification defined URI (these are keywords in the language)Name used in the SPARQL algebra.Name used for output in SPARQL format needing functional syntax: name(arg1, arg2, ...)int
hashCode()
Expr
are used in both syntax and algebra.Methods inherited from class org.apache.jena.sparql.expr.ExprFunctionN
apply, applyNodeTransform, copySubstitute, eval, eval, getArg, getArgs, numArgs, visit
Methods inherited from class org.apache.jena.sparql.expr.ExprFunction
getFunction, getFunctionSymbol, getOpName, isFunction
Methods inherited from class org.apache.jena.sparql.expr.ExprNode
asVar, deepCopy, equals, equalsBySyntax, getConstant, getExpr, getExprVar, getGraphPattern, getVarName, getVarsMentioned, isConstant, isExpr, isGraphPattern, isSatisfied, isVariable, toString
-
Field Details
-
WarnOnUnknownFunction
public static boolean WarnOnUnknownFunction
-
-
Constructor Details
-
E_Function
-
-
Method Details
-
getFunctionIRI
Description copied from class:ExprFunction
URI for this function, whether custom or specification defined URI (these are keywords in the language)- Overrides:
getFunctionIRI
in classExprFunction
-
evalSpecial
-
eval
- Specified by:
eval
in classExprFunctionN
-
buildFunction
-
getFunctionPrintName
Description copied from class:ExprFunction
Name used for output in SPARQL format needing functional syntax: name(arg1, arg2, ...) e.g. regexp(), custom functions, ...- Overrides:
getFunctionPrintName
in classExprFunction
-
getFunctionName
Description copied from class:ExprFunction
Name used in the SPARQL algebra. See alsoExprFunction.getOpName()
for an operator form.- Overrides:
getFunctionName
in classExprFunction
-
copy
- Specified by:
copy
in classExprFunctionN
-
equals
Description copied from interface:Expr
General equality operation - consider this to be 'protected'- Specified by:
equals
in interfaceExpr
- Overrides:
equals
in classExprFunction
-
hashCode
public int hashCode()Description copied from interface:Expr
Expr
are used in both syntax and algebra. There is no syntax to algebra translation step because the parser uses operator precedence to build the right evaluation structure directly.The exceptions to this are the
NOT EXISTS
andEXISTS
expressions which involve a query pattern. As a result there are different ways in syntax to produce the same algebra form.Two
Expr
are considered equal if they are equal as algebra expressions.hashCode
andequals
must implement that.There is also
equalsBySyntax
. Because two different syntax forms can yield the same algebra, but two different algebra forms must be different syntax,equalsBySyntax
impliesequals
(by algebra).Hence, different
hashCode
=> notequalsBySyntax
.- Specified by:
hashCode
in interfaceExpr
- Overrides:
hashCode
in classExprFunction
-