Class RectComparisonFunction

    • Constructor Detail

      • RectComparisonFunction

        public RectComparisonFunction​(String fname)
    • Method Detail

      • getURI

        public String getURI()
        Specified by:
        getURI in interface org.eclipse.rdf4j.query.algebra.evaluation.function.Function
      • evaluateForBoxes

        protected abstract boolean evaluateForBoxes​(Rectangular b1,
                                                    Rectangular b2)
        Compares the two boxes and returns a boolean result.
        Parameters:
        b1 -
        b2 -
        Returns:
      • evaluate

        public org.eclipse.rdf4j.model.Value evaluate​(org.eclipse.rdf4j.query.algebra.evaluation.TripleSource tripleSource,
                                                      org.eclipse.rdf4j.model.Value... args)
                                               throws org.eclipse.rdf4j.query.algebra.evaluation.ValueExprEvaluationException
        Executes the palindrome function.
        Specified by:
        evaluate in interface org.eclipse.rdf4j.query.algebra.evaluation.function.Function
        Returns:
        A boolean literal representing true if the input argument boxes are below each other.
        Throws:
        org.eclipse.rdf4j.query.algebra.evaluation.ValueExprEvaluationException
      • evaluate

        public org.eclipse.rdf4j.model.Value evaluate​(org.eclipse.rdf4j.model.ValueFactory valueFactory,
                                                      org.eclipse.rdf4j.model.Value... args)
                                               throws org.eclipse.rdf4j.query.algebra.evaluation.ValueExprEvaluationException
        Specified by:
        evaluate in interface org.eclipse.rdf4j.query.algebra.evaluation.function.Function
        Throws:
        org.eclipse.rdf4j.query.algebra.evaluation.ValueExprEvaluationException