Class ScoreAccessor
java.lang.Object
java.lang.Number
org.opensearch.script.ScoreAccessor
- All Implemented Interfaces:
Serializable
A float encapsulation that dynamically accesses the score of a document.
The provided DocLookup is used to retrieve the score
for the current document.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Constructor Details
-
ScoreAccessor
public ScoreAccessor(org.apache.lucene.search.Scorable scorer)
-
-
Method Details
-
intValue
-
longValue
-
floatValue
public float floatValue()- Specified by:
floatValuein classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein classNumber
-