Class BoundsChecker.Min

java.lang.Object
org.apache.lucene.util.hnsw.BoundsChecker
org.apache.lucene.util.hnsw.BoundsChecker.Min
Enclosing class:
BoundsChecker

public static class BoundsChecker.Min extends BoundsChecker
A helper class for an hnsw graph that serves as a comparator of the currently set minimum value with a new value.
  • Method Details

    • update

      public void update(float sample)
      Description copied from class: BoundsChecker
      Update the bound if sample is better
      Specified by:
      update in class BoundsChecker
    • check

      public boolean check(float sample)
      Specified by:
      check in class BoundsChecker
      Returns:
      whether the sample exceeds (is worse than) the bound