Skip to navigation

CuVS2510GPUVectorsFormat

View as Markdown

Java package: com.nvidia.cuvs.lucene

public class CuVS2510GPUVectorsFormat extends KnnVectorsFormat

Extends upon the KnnVectorsFormat - Encodes/decodes per-document vector and any associated indexing structures required to support GPU-based accelerated nearest-neighbor search.

Public Members

CuVS2510GPUVectorsFormat

public CuVS2510GPUVectorsFormat()

Initializes the CuVS2510GPUVectorsFormat with default parameter values.

Throws

TypeDescription
LibraryExceptionif the native library fails to load

Source: java/cuvs-lucene/src/main/java/com/nvidia/cuvs/lucene/CuVS2510GPUVectorsFormat.java:55

CuVS2510GPUVectorsFormat

public CuVS2510GPUVectorsFormat(GPUSearchParams gpuSearchParams)

Initializes the CuVS2510GPUVectorsFormat with an instance of GPUSearchParams.

Parameters

NameDescription
gpuSearchParamsAn instance of GPUSearchParams

Throws

TypeDescription
LibraryExceptionif the native library fails to load

Source: java/cuvs-lucene/src/main/java/com/nvidia/cuvs/lucene/CuVS2510GPUVectorsFormat.java:65

CuVS2510GPUVectorsFormat

public CuVS2510GPUVectorsFormat( GPUSearchParams gpuSearchParams, FilterBitsetCacheConfig filterCacheConfig)

Initializes the format with GPU search and filter-bitset-cache parameters.

Parameters

NameDescription
gpuSearchParamsGPU index and search parameters
filterCacheConfigfilter-bitset-cache configuration

Throws

TypeDescription
LibraryExceptionif the native library fails to load

Source: java/cuvs-lucene/src/main/java/com/nvidia/cuvs/lucene/CuVS2510GPUVectorsFormat.java:76

fieldsWriter

@Override public KnnVectorsWriter fieldsWriter(SegmentWriteState state) throws IOException

Returns a KnnVectorsReader instance to write the vectors to the index.

Source: java/cuvs-lucene/src/main/java/com/nvidia/cuvs/lucene/CuVS2510GPUVectorsFormat.java:86

fieldsReader

@Override public KnnVectorsReader fieldsReader(SegmentReadState state) throws IOException

Returns a KnnVectorsReader instance to read the vectors from the index.

Source: java/cuvs-lucene/src/main/java/com/nvidia/cuvs/lucene/CuVS2510GPUVectorsFormat.java:96

getMaxDimensions

@Override public int getMaxDimensions(String fieldName)

Returns the maximum number of vector dimensions supported by this codec for the given field name.

Source: java/cuvs-lucene/src/main/java/com/nvidia/cuvs/lucene/CuVS2510GPUVectorsFormat.java:106

Source: java/cuvs-lucene/src/main/java/com/nvidia/cuvs/lucene/CuVS2510GPUVectorsFormat.java:25