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
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 Summary
ConstructorsConstructorDescriptionInterpolatedLookup(String attributeName, GroupingExpression lookupArgument) Constructs a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns a deep copy of thisReturns the name of the attribute to retrieve from the input hitReturn the expression to evaluate before lookupMethods inherited from class com.yahoo.search.grouping.request.DocumentValue
resolveLevelMethods inherited from class com.yahoo.search.grouping.request.GroupingExpression
asImage, asString, getLevel, getLevelOrNull, setLabel, visitMethods inherited from class com.yahoo.search.grouping.request.GroupingNode
getImage, getLabel, toString
-
Constructor Details
-
InterpolatedLookup
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
-
copy
Description copied from class:GroupingExpressionReturns a deep copy of this- Specified by:
copyin classGroupingExpression
-
getAttributeName
Returns the name of the attribute to retrieve from the input hit -
getLookupArgument
Return the expression to evaluate before lookup
-