Package com.yahoo.schema.document
Class HnswIndexParams
java.lang.Object
com.yahoo.schema.document.HnswIndexParams
Configuration parameters for a hnsw index used together with a 1-dimensional indexed tensor for approximate nearest neighbor search.
- Author:
- geirst
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
overrideFrom
(Optional<HnswIndexParams> other) Creates a new instance where values from the given parameter instance are used where they are present, otherwise we use values from this.
-
Field Details
-
DEFAULT_MAX_LINKS_PER_NODE
public static final int DEFAULT_MAX_LINKS_PER_NODE- See Also:
-
DEFAULT_NEIGHBORS_TO_EXPLORE_AT_INSERT
public static final int DEFAULT_NEIGHBORS_TO_EXPLORE_AT_INSERT- See Also:
-
-
Constructor Details
-
HnswIndexParams
public HnswIndexParams() -
HnswIndexParams
-
-
Method Details
-
overrideFrom
Creates a new instance where values from the given parameter instance are used where they are present, otherwise we use values from this. -
maxLinksPerNode
public int maxLinksPerNode() -
neighborsToExploreAtInsert
public int neighborsToExploreAtInsert() -
multiThreadedIndexing
public boolean multiThreadedIndexing()
-