Class BoundsChecker.Max

  • Enclosing class:
    BoundsChecker

    public static class BoundsChecker.Max
    extends BoundsChecker
    A helper class for an hnsw graph that serves as a comparator of the currently set maximum value with a new value.
    • Constructor Summary

      Constructors 
      Constructor Description
      Max()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean check​(float sample)  
      void update​(float sample)
      Update the bound if sample is better
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Max

        Max()
    • Method Detail

      • 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