CagraIndexParamsFactory
Java package: com.nvidia.cuvs.lucene
A centralized place for producing CagraIndexParams from the cuvs-lucene input parameter
classes based on the chosen strategy.
For the HEURISTIC strategy the build heuristics are delegated to cuVS.
Public Members
create
Creates an instance of CagraIndexParams for the GPU-native CAGRA index based on the
chosen strategy in the GPUSearchParams.
Parameters
Returns
an instance of CagraIndexParams
Source: java/cuvs-lucene/src/main/java/com/nvidia/cuvs/lucene/CagraIndexParamsFactory.java:29
create
Creates an instance of CagraIndexParams for the accelerated-HNSW index based on the
chosen strategy in the AcceleratedHNSWParams.
Parameters
Returns
an instance of CagraIndexParams
Source: java/cuvs-lucene/src/main/java/com/nvidia/cuvs/lucene/CagraIndexParamsFactory.java:73
withMaxGraphDegree
Returns params with the graph degree lowered to maxGraphDegree, or the same
params if its graph degree is not larger. The intermediate graph degree is kept, so
it stays at least the graph degree, as CAGRA requires.
Parameters
Returns
parameters whose graph degree is at most maxGraphDegree
Source: java/cuvs-lucene/src/main/java/com/nvidia/cuvs/lucene/CagraIndexParamsFactory.java:119
Source: java/cuvs-lucene/src/main/java/com/nvidia/cuvs/lucene/CagraIndexParamsFactory.java:17