Package org.apache.lucene.util.hnsw
Interface HnswBuilder
-
- All Known Implementing Classes:
HnswConcurrentMergeBuilder,HnswGraphBuilder,InitializedHnswGraphBuilder
public interface HnswBuilderInterface for builder building theOnHeapHnswGraph- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddGraphNode(int node)Inserts a doc with vector value to the graphOnHeapHnswGraphbuild(int maxOrd)Adds all nodes to the graph up to the providedmaxOrd.OnHeapHnswGraphgetGraph()voidsetInfoStream(InfoStream infoStream)Set info-stream to output debugging information
-
-
-
Method Detail
-
build
OnHeapHnswGraph build(int maxOrd) throws IOException
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
void addGraphNode(int node) throws IOExceptionInserts a doc with vector value to the graph- Throws:
IOException
-
setInfoStream
void setInfoStream(InfoStream infoStream)
Set info-stream to output debugging information
-
getGraph
OnHeapHnswGraph getGraph()
-
-