Class InterpolatedLookup

  • @Beta
    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.
    • Constructor Detail

      • InterpolatedLookup

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

      • getAttributeName

        public java.lang.String getAttributeName()
        Returns the name of the attribute to retrieve from the input hit
      • getLookupArgument

        public GroupingExpression getLookupArgument()
        Return the expression to evaluate before lookup