Class ScoreAccessor

java.lang.Object
java.lang.Number
org.elasticsearch.script.ScoreAccessor
All Implemented Interfaces:
Serializable

public final class ScoreAccessor extends Number
A float encapsulation that dynamically accesses the score of a document. The provided Scorable is used to retrieve the score for the current document.
See Also:
  • Constructor Details

    • ScoreAccessor

      public ScoreAccessor(org.apache.lucene.search.Scorable scorer)
  • Method Details

    • intValue

      public int intValue()
      Specified by:
      intValue in class Number
    • longValue

      public long longValue()
      Specified by:
      longValue in class Number
    • floatValue

      public float floatValue()
      Specified by:
      floatValue in class Number
    • doubleValue

      public double doubleValue()
      Specified by:
      doubleValue in class Number