BruteForceIndex
Java package: com.nvidia.cuvs
BruteForceIndex encapsulates a BRUTEFORCE index, along with methods
to interact with it.
Public Members
close
Invokes the native destroy_brute_force_index function to de-allocate BRUTEFORCE index
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/BruteForceIndex.java:25
search
Invokes the native search_brute_force_index via the Panama API for searching a BRUTEFORCE index.
Parameters
Returns
an instance of SearchResults containing the results
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/BruteForceIndex.java:36
serialize
A method to persist a BRUTEFORCE index using an instance of
OutputStream for writing index bytes.
Parameters
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/BruteForceIndex.java:45
serialize
A method to persist a BRUTEFORCE index using an instance of
OutputStream and path to the intermediate temporary file.
Parameters
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/BruteForceIndex.java:56
newBuilder
Creates a new Builder with an instance of CuVSResources.
Parameters
Throws
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/BruteForceIndex.java:64
withIndexParams
Registers an instance of configured BruteForceIndexParams with this
Builder.
Parameters
Returns
An instance of this Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/BruteForceIndex.java:81
from
Sets an instance of InputStream typically used when index deserialization is needed.
Parameters
Returns
an instance of this Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/BruteForceIndex.java:90
withDataset
Sets the dataset vectors for building the BruteForceIndex.
Parameters
Returns
an instance of this Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/BruteForceIndex.java:98
withDataset
Sets the dataset for building the BruteForceIndex.
Parameters
Returns
an instance of this Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/BruteForceIndex.java:106
build
Builds and returns an instance of BruteForceIndex.
Returns
an instance of BruteForceIndex
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/BruteForceIndex.java:113
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/BruteForceIndex.java:20