Package io.github.jbellis.jvector.graph
Class SearchResult
java.lang.Object
io.github.jbellis.jvector.graph.SearchResult
Container class for results of an ANN search, along with associated metrics about the behavior of the search.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSearchResult(SearchResult.NodeScore[] nodes, BitSet visited, int visitedCount) -
Method Summary
-
Constructor Details
-
SearchResult
-
-
Method Details
-
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
-