Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHegarty committed Feb 2, 2025
1 parent ab52b2b commit 7ca879b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,15 @@ public String toString() {
*/
public static class Builder {

private CuVSResources resources;
private CuvsHnswHierarchy hierarchy = CuvsHnswHierarchy.NONE;
private int efConstruction = 200;
private int numThreads = 2;
private int vectorDimension;

/**
* Constructs this Builder with an instance of Arena.
*
* @param resources the {@link CuVSResources} instance to use
*/
public Builder(CuVSResources resources) {
this.resources = resources;
}
public Builder() { }

/**
* Sets the hierarchy for HNSW index when converting from CAGRA index.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void testIndexingAndSearchingFlow() throws Throwable {
String hnswIndexFileName = UUID.randomUUID().toString() + ".hnsw";
index.serializeToHNSW(new FileOutputStream(hnswIndexFileName));

HnswIndexParams hnswIndexParams = new HnswIndexParams.Builder(resources)
HnswIndexParams hnswIndexParams = new HnswIndexParams.Builder()
.withVectorDimension(2)
.build();
InputStream inputStreamHNSW = new FileInputStream(hnswIndexFileName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private void tmpResultsTopKWithRandomValues() throws Throwable {
String hnswIndexFileName = UUID.randomUUID().toString() + ".hnsw";
index.serializeToHNSW(new FileOutputStream(hnswIndexFileName)); // fails here

HnswIndexParams hnswIndexParams = new HnswIndexParams.Builder(resources)
HnswIndexParams hnswIndexParams = new HnswIndexParams.Builder()
.withVectorDimension(dimensions)
.build();
InputStream inputStreamHNSW = new FileInputStream(hnswIndexFileName);
Expand Down

0 comments on commit 7ca879b

Please sign in to comment.