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