- All Known Implementing Classes:
HnswConcurrentMergeBuilder,HnswConcurrentMergeBuilder.ConcurrentMergeWorker,HnswGraphBuilder,InitializedHnswGraphBuilder
public interface HnswBuilder
Interface for builder building the
OnHeapHnswGraph-
Method Summary
Modifier and TypeMethodDescriptionvoidaddGraphNode(int node) Inserts a doc with vector value to the graphbuild(int maxOrd) Adds all nodes to the graph up to the providedmaxOrd.getGraph()voidsetInfoStream(InfoStream infoStream) Set info-stream to output debugging information
-
Method Details
-
build
Adds all nodes to the graph up to the providedmaxOrd.- Parameters:
maxOrd- The maximum ordinal (excluded) of the nodes to be added.- Throws:
IOException
-
addGraphNode
Inserts a doc with vector value to the graph- Throws:
IOException
-
setInfoStream
Set info-stream to output debugging information -
getGraph
OnHeapHnswGraph getGraph()
-