Class InterpolatedLookup


public class InterpolatedLookup extends DocumentValue
This class represents a lookup in a multivalue document attribute in a GroupingExpression. It takes the attribute (assumed to contain a sorted array) from the input Hit and finds the index that the second (lookup) argument expression would have, with linear interpolation when the lookup argument is between two array element values.
Author:
arnej27959
  • Constructor Details

    • InterpolatedLookup

      public InterpolatedLookup(String attributeName, GroupingExpression lookupArgument)
      Constructs a new instance of this class.
      Parameters:
      attributeName - the attribute name to assign to this.
      lookupArgument - Expression giving a floating-point value for the lookup argument
  • Method Details