OnHeapHnswGraph
An HnswGraph where all nodes and connections are held in memory. This class is used to construct the HNSW graph before it's written to the index.
Properties
Functions
Returns the NeighborQueue connected to the given node.
WARN: calling this method will essentially iterate through all nodes at level 0 (even if you're not getting node at level 0), we have built some caching mechanism such that if graph is not changed only the first non-zero level call will pay the cost. So it is highly NOT recommended to call this method while the graph is still building.
Iterates over the neighbor list. It is illegal to call this method after it returns NO_MORE_DOCS without calling .seek, which resets the iterator.
Return the memory usage of this object in bytes. Negative values are illegal.
Try to promote the provided node to the entry node
Try to set the entry node if the graph does not have one