java.lang.Object
org.apache.lucene.search.MaxScoreAccumulator
Maintains the maximum score and its corresponding document id concurrently
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final LongAccumulator(package private) static final int(package private) long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaccumulate(int docBase, float score) (package private) MaxScoreAccumulator.DocAndScoreget()private static longmaxEncode(long v1, long v2) Return the max encoded DocAndScore in a way that is consistent withMaxScoreAccumulator.DocAndScore.compareTo(org.apache.lucene.search.MaxScoreAccumulator.DocAndScore).
-
Field Details
-
DEFAULT_INTERVAL
static final int DEFAULT_INTERVAL- See Also:
-
acc
-
modInterval
long modInterval
-
-
Constructor Details
-
MaxScoreAccumulator
MaxScoreAccumulator()
-
-
Method Details
-
maxEncode
private static long maxEncode(long v1, long v2) Return the max encoded DocAndScore in a way that is consistent withMaxScoreAccumulator.DocAndScore.compareTo(org.apache.lucene.search.MaxScoreAccumulator.DocAndScore). -
accumulate
void accumulate(int docBase, float score) -
get
-