Class MaxScoreAccumulator

java.lang.Object
org.apache.lucene.search.MaxScoreAccumulator

final class MaxScoreAccumulator extends Object
Maintains the maximum score and its corresponding document id concurrently
  • Field Details

  • Constructor Details

    • MaxScoreAccumulator

      MaxScoreAccumulator()
  • Method Details

    • maxEncode

      private static long maxEncode(long v1, long v2)
      Return the max encoded docId and score found in the two longs, following the encoding in accumulate(int, float).
    • accumulate

      void accumulate(int docId, float score)
    • toScore

      public static float toScore(long value)
    • docId

      public static int docId(long value)
    • getRaw

      long getRaw()