public class MathUtility extends Object implements IMathOpHandler
Constructor and Description |
---|
MathUtility() |
Modifier and Type | Method and Description |
---|---|
boolean |
canInvokeMathOp(org.openrdf.model.Literal... args)
Check if this utility applies for the argument types.
|
static boolean |
checkNumericDatatype(org.openrdf.model.Literal... args) |
NumericIV |
doMathOp(org.openrdf.model.Literal l1,
IV iv1,
org.openrdf.model.Literal l2,
IV iv2,
MathBOp.MathOp op,
BigdataValueFactory vf)
Perform the operation on arguments.
|
static NumericIV |
literalMath(org.openrdf.model.Literal l1,
org.openrdf.model.Literal l2,
MathBOp.MathOp op) |
static NumericIV |
numericalFunc(org.openrdf.model.Literal lit,
NumericBOp.NumericOp op)
The XPath numeric functions: abs, ceiling, floor, and round.
|
public static boolean checkNumericDatatype(org.openrdf.model.Literal... args)
public boolean canInvokeMathOp(org.openrdf.model.Literal... args)
IMathOpHandler
canInvokeMathOp
in interface IMathOpHandler
public NumericIV doMathOp(org.openrdf.model.Literal l1, IV iv1, org.openrdf.model.Literal l2, IV iv2, MathBOp.MathOp op, BigdataValueFactory vf)
IMathOpHandler
doMathOp
in interface IMathOpHandler
public static NumericIV literalMath(org.openrdf.model.Literal l1, org.openrdf.model.Literal l2, MathBOp.MathOp op)
public static final NumericIV numericalFunc(org.openrdf.model.Literal lit, NumericBOp.NumericOp op)
iv1
- The operand.op
- The operation.XPathMathFunctions
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.