@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.Modifier and Type | Field and Description |
---|---|
private GroupingExpression |
arg2 |
private String |
attributeName |
Constructor and Description |
---|
InterpolatedLookup(String attributeName,
GroupingExpression lookupArg)
Constructs a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
String |
getAttributeName()
Get the name of the attribute to be retrieved from the input hit.
|
GroupingExpression |
getLookupArgument()
Get the expression that will be evaluated before lookup.
|
resolveLevel
asImage, asString, getLevel, setLabel, visit
getLabel, toString
private final String attributeName
private final GroupingExpression arg2
public InterpolatedLookup(String attributeName, GroupingExpression lookupArg)
attributeName
- The attribute name the lookup should happen inlookupArg
- Expression giving a floating-point value for the lookup argumentpublic String getAttributeName()
public GroupingExpression getLookupArgument()
Copyright © 2017. All rights reserved.