Class Lucene91BoundsChecker.Max
java.lang.Object
org.apache.lucene.backward_codecs.lucene91.Lucene91BoundsChecker
org.apache.lucene.backward_codecs.lucene91.Lucene91BoundsChecker.Max
- Enclosing class:
Lucene91BoundsChecker
A helper class for an hnsw graph that serves as a comparator of the currently set maximum value
with a new value.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.backward_codecs.lucene91.Lucene91BoundsChecker
Lucene91BoundsChecker.Max, Lucene91BoundsChecker.Min
-
Method Summary
Methods inherited from class org.apache.lucene.backward_codecs.lucene91.Lucene91BoundsChecker
create, set
-
Method Details
-
update
public void update(float sample) Description copied from class:Lucene91BoundsChecker
Update the bound if sample is better- Specified by:
update
in classLucene91BoundsChecker
-
check
public boolean check(float sample) Description copied from class:Lucene91BoundsChecker
Check the sample- Specified by:
check
in classLucene91BoundsChecker
- Parameters:
sample
- a score- Returns:
- whether the sample exceeds (is worse than) the bound
-