Class InterpolatedLookup
- java.lang.Object
-
- com.yahoo.search.grouping.request.GroupingNode
-
- com.yahoo.search.grouping.request.GroupingExpression
-
- com.yahoo.search.grouping.request.DocumentValue
-
- com.yahoo.search.grouping.request.InterpolatedLookup
-
@Beta public class InterpolatedLookup extends DocumentValue
This class represents a lookup in a multivalue document attribute in aGroupingExpression
. It takes the attribute (assumed to contain a sorted array) from the inputHit
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 Summary
Constructors Constructor Description InterpolatedLookup(java.lang.String attributeName, GroupingExpression lookupArgument)
Constructs a new instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InterpolatedLookup
copy()
Returns a deep copy of thisjava.lang.String
getAttributeName()
Returns the name of the attribute to retrieve from the input hitGroupingExpression
getLookupArgument()
Return the expression to evaluate before lookup-
Methods inherited from class com.yahoo.search.grouping.request.DocumentValue
resolveLevel
-
Methods inherited from class com.yahoo.search.grouping.request.GroupingExpression
asImage, asString, getLevel, getLevelOrNull, setLabel, visit
-
Methods inherited from class com.yahoo.search.grouping.request.GroupingNode
getImage, getLabel, toString
-
-
-
-
Constructor Detail
-
InterpolatedLookup
public InterpolatedLookup(java.lang.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 Detail
-
copy
public InterpolatedLookup copy()
Description copied from class:GroupingExpression
Returns a deep copy of this- Specified by:
copy
in classGroupingExpression
-
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
-
-