Class EqualFunction


  • public class EqualFunction
    extends org.apache.lucene.queries.function.valuesource.ComparisonBoolFunction
    Compares two values for equality. It should work on not only numbers but strings and custom things.
    Since:
    7.4
    • Constructor Summary

      Constructors 
      Constructor Description
      EqualFunction​(org.apache.lucene.queries.function.ValueSource lhs, org.apache.lucene.queries.function.ValueSource rhs, String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean compare​(int doc, org.apache.lucene.queries.function.FunctionValues lhs, org.apache.lucene.queries.function.FunctionValues rhs)  
      • Methods inherited from class org.apache.lucene.queries.function.valuesource.ComparisonBoolFunction

        createWeight, description, equals, getValues, hashCode, name
      • Methods inherited from class org.apache.lucene.queries.function.ValueSource

        asDoubleValuesSource, asLongValuesSource, fromDoubleValuesSource, getSortField, newContext, toString
    • Constructor Detail

      • EqualFunction

        public EqualFunction​(org.apache.lucene.queries.function.ValueSource lhs,
                             org.apache.lucene.queries.function.ValueSource rhs,
                             String name)
    • Method Detail

      • compare

        public boolean compare​(int doc,
                               org.apache.lucene.queries.function.FunctionValues lhs,
                               org.apache.lucene.queries.function.FunctionValues rhs)
                        throws IOException
        Specified by:
        compare in class org.apache.lucene.queries.function.valuesource.ComparisonBoolFunction
        Throws:
        IOException