Class ObjectWithScore<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T object  
      private double score  
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectWithScore​(T object, double score)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()
      Returns the matching object.
      double getScore()
      Returns the query score for the object.
      • Methods inherited from class java.lang.Object

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

      • object

        private final T object
      • score

        private final double score
    • Constructor Detail

      • ObjectWithScore

        public ObjectWithScore​(T object,
                               double score)
    • Method Detail

      • get

        public T get()
        Returns the matching object.
      • getScore

        public double getScore()
        Returns the query score for the object.

        The query score indicates some quality measurement. E.g. for vector nearest neighbor searches, the score is the distance to the given vector.