com.bigdata.rdf.internal.constraints.IMathOpHandler Maven / Gradle / Ivy
package com.bigdata.rdf.internal.constraints;
import org.openrdf.model.Literal;
import com.bigdata.rdf.internal.IV;
import com.bigdata.rdf.internal.constraints.MathBOp.MathOp;
import com.bigdata.rdf.model.BigdataValueFactory;
/**
* Interface for handling math operations on specific data type.
*
*/
public interface IMathOpHandler {
/**
* Check if this utility applies for the argument types.
* @param args
* @return
*/
public boolean canInvokeMathOp(final Literal... args);
/**
* Perform the operation on arguments.
* @param l1
* @param iv1
* @param l2
* @param iv2
* @param op
* @param vf
* @return
*/
public IV doMathOp(final Literal l1, final IV iv1,
final Literal l2, final IV iv2,
final MathOp op, final BigdataValueFactory vf);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy