Class SolrComparisonBoolFunction


  • public class SolrComparisonBoolFunction
    extends org.apache.lucene.queries.function.valuesource.ComparisonBoolFunction
    Refines ComparisonBoolFunction to compare based on a 'long' or 'double' depending on if the any of the FunctionValues are LongDocValues.
    • 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

      • SolrComparisonBoolFunction

        public SolrComparisonBoolFunction​(org.apache.lucene.queries.function.ValueSource lhs,
                                          org.apache.lucene.queries.function.ValueSource rhs,
                                          String name,
                                          SolrComparisonBoolFunction.Compare cmp)
    • 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