Class IdWithScore

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long id  
      private double score  
    • Constructor Summary

      Constructors 
      Constructor Description
      IdWithScore​(long id, double score)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getId()
      Returns the object ID.
      double getScore()
      Returns the query score for the id.
      • Methods inherited from class java.lang.Object

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

      • id

        private final long id
      • score

        private final double score
    • Constructor Detail

      • IdWithScore

        public IdWithScore​(long id,
                           double score)
    • Method Detail

      • getId

        public long getId()
        Returns the object ID.
      • getScore

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

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