Package org.elasticsearch.script
Class ScoreAccessor
- java.lang.Object
-
- java.lang.Number
-
- org.elasticsearch.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 providedDocLookup
is used to retrieve the score for the current document.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScoreAccessor(org.apache.lucene.search.Scorer scorer)
-
Method Summary
Modifier and Type Method Description double
doubleValue()
float
floatValue()
int
intValue()
long
longValue()
-
-
-
Method Detail
-
intValue
public int intValue()
- Specified by:
intValue
in classjava.lang.Number
-
longValue
public long longValue()
- Specified by:
longValue
in classjava.lang.Number
-
floatValue
public float floatValue()
- Specified by:
floatValue
in classjava.lang.Number
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classjava.lang.Number
-
-