Class ResultEntry

java.lang.Object
com.apple.foundationdb.async.hnsw.ResultEntry

public class ResultEntry extends Object
Record-like class to wrap the results of a kNN-search.
  • Constructor Details

    • ResultEntry

      public ResultEntry(@Nonnull Tuple primaryKey, @Nullable RealVector vector, double distance, int rankOrRowNumber)
  • Method Details

    • getPrimaryKey

      @Nonnull public Tuple getPrimaryKey()
    • getVector

      @Nullable public RealVector getVector()
    • getDistance

      public double getDistance()
    • getRankOrRowNumber

      public int getRankOrRowNumber()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object