Package org.opensearch.script
Class ScoreAccessor
java.lang.Object
java.lang.Number
org.opensearch.script.ScoreAccessor
- All Implemented Interfaces:
java.io.Serializable
public final class ScoreAccessor
extends java.lang.Number
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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ScoreAccessor(org.apache.lucene.search.Scorable scorer) -
Method Summary
Modifier and Type Method Description doubledoubleValue()floatfloatValue()intintValue()longlongValue()
-
Constructor Details
-
ScoreAccessor
public ScoreAccessor(org.apache.lucene.search.Scorable scorer)
-
-
Method Details
-
intValue
public int intValue()- Specified by:
intValuein classjava.lang.Number
-
longValue
public long longValue()- Specified by:
longValuein classjava.lang.Number
-
floatValue
public float floatValue()- Specified by:
floatValuein classjava.lang.Number
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein classjava.lang.Number
-