Package org.apache.lucene.util.hnsw
Class BoundsChecker.Min
java.lang.Object
org.apache.lucene.util.hnsw.BoundsChecker
org.apache.lucene.util.hnsw.BoundsChecker.Min
- Enclosing class:
- BoundsChecker
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.util.hnsw.BoundsChecker
BoundsChecker.Max, BoundsChecker.Min -
Field Summary
Fields inherited from class org.apache.lucene.util.hnsw.BoundsChecker
bound -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.lucene.util.hnsw.BoundsChecker
create, set
-
Constructor Details
-
Min
Min()
-
-
Method Details
-
update
public void update(float sample) Description copied from class:BoundsCheckerUpdate the bound if sample is better- Specified by:
updatein classBoundsChecker
-
check
public boolean check(float sample) - Specified by:
checkin classBoundsChecker- Returns:
- whether the sample exceeds (is worse than) the bound
-