@Beta public class InterpolatedLookup extends DocumentValue
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 and Description |
---|
InterpolatedLookup(String attributeName,
GroupingExpression lookupArgument)
Constructs a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
InterpolatedLookup |
copy()
Returns a deep copy of this
|
String |
getAttributeName()
Returns the name of the attribute to retrieve from the input hit
|
GroupingExpression |
getLookupArgument()
Return the expression to evaluate before lookup
|
resolveLevel
asImage, asString, getLevel, getLevelOrNull, setLabel, visit
getImage, getLabel, toString
public InterpolatedLookup(String attributeName, GroupingExpression lookupArgument)
attributeName
- the attribute name to assign to this.lookupArgument
- Expression giving a floating-point value for the lookup argumentpublic InterpolatedLookup copy()
GroupingExpression
copy
in class GroupingExpression
public String getAttributeName()
public GroupingExpression getLookupArgument()
Copyright © 2018. All rights reserved.