Class RangeMapFloatFunction

java.lang.Object
org.apache.lucene.queries.function.ValueSource
org.apache.lucene.queries.function.valuesource.RangeMapFloatFunction

public class RangeMapFloatFunction extends ValueSource
RangeMapFloatFunction implements a map function over another ValueSource whose values fall within min and max inclusive to target.
Normally Used as an argument to a FunctionQuery
  • Field Details

    • source

      protected final ValueSource source
    • min

      protected final float min
    • max

      protected final float max
    • target

      protected final ValueSource target
    • defaultVal

      protected final ValueSource defaultVal
  • Constructor Details

    • RangeMapFloatFunction

      public RangeMapFloatFunction(ValueSource source, float min, float max, float target, Float def)
    • RangeMapFloatFunction

      public RangeMapFloatFunction(ValueSource source, float min, float max, ValueSource target, ValueSource def)
  • Method Details