Package org.apache.lucene.search
Class MaxScoreAccumulator
- java.lang.Object
-
- org.apache.lucene.search.MaxScoreAccumulator
-
final class MaxScoreAccumulator extends java.lang.Object
Maintains the maximum score and its corresponding document id concurrently
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
MaxScoreAccumulator.DocAndScore
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.concurrent.atomic.LongAccumulator
acc
(package private) static int
DEFAULT_INTERVAL
(package private) long
modInterval
-
Constructor Summary
Constructors Constructor Description MaxScoreAccumulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
accumulate(int docID, float score)
(package private) MaxScoreAccumulator.DocAndScore
get()
-
-
-
Field Detail
-
DEFAULT_INTERVAL
static final int DEFAULT_INTERVAL
- See Also:
- Constant Field Values
-
acc
final java.util.concurrent.atomic.LongAccumulator acc
-
modInterval
long modInterval
-
-
Method Detail
-
accumulate
void accumulate(int docID, float score)
-
get
MaxScoreAccumulator.DocAndScore get()
-
-