Class SearchResult

java.lang.Object
io.github.jbellis.jvector.graph.SearchResult

public final class SearchResult extends Object
Container class for results of an ANN search, along with associated metrics about the behavior of the search.
  • Constructor Details

  • Method Details

    • getNodes

      public SearchResult.NodeScore[] getNodes()
      Returns:
      the closest neighbors discovered by the search, sorted best-first
    • getVisitedCount

      public int getVisitedCount()
      Returns:
      the total number of graph nodes visited while performing the search