InitializedHnswGraphBuilder

class InitializedHnswGraphBuilder(scorerSupplier: RandomVectorScorerSupplier, beamWidth: Int, seed: Long, initializedGraph: OnHeapHnswGraph, initializedNodes: BitSet) : HnswGraphBuilder

This creates a graph builder that is initialized with the provided HnswGraph. This is useful for merging HnswGraphs from multiple segments.

Constructors

Link copied to clipboard
constructor(scorerSupplier: RandomVectorScorerSupplier, beamWidth: Int, seed: Long, initializedGraph: OnHeapHnswGraph, initializedNodes: BitSet)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val completedGraph: OnHeapHnswGraph
Link copied to clipboard
open override val graph: OnHeapHnswGraph

Functions

Link copied to clipboard
open override fun addGraphNode(node: Int)

Inserts a doc with vector value to the graph

open override fun addGraphNode(node: Int, scorer: UpdateableRandomVectorScorer)
Link copied to clipboard
open override fun build(maxOrd: Int): OnHeapHnswGraph

Adds all nodes to the graph up to the provided maxOrd.

Link copied to clipboard
fun finish()
Link copied to clipboard
open override fun setInfoStream(infoStream: InfoStream)

Set info-stream to output debugging information