Skip to content

Commit f4ac95f

Browse files
author
Mariano Tepper
committed
Remove the version PQVectors.encodeAndBuild that uses int[]
1 parent 0f343c6 commit f4ac95f

File tree

1 file changed

+0
-15
lines changed
  • jvector-base/src/main/java/io/github/jbellis/jvector/quantization

1 file changed

+0
-15
lines changed

jvector-base/src/main/java/io/github/jbellis/jvector/quantization/PQVectors.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -90,21 +90,6 @@ public static ImmutablePQVectors encodeAndBuild(ProductQuantization pq, int vect
9090
return encodeAndBuild(pq, vectorCount, IntUnaryOperator.identity(), ravv, simdExecutor);
9191
}
9292

93-
/**
94-
* Build a PQVectors instance from the given RandomAccessVectorValues. The vectors are encoded in parallel
95-
* and split into chunks to avoid exceeding the maximum array size.
96-
*
97-
* @param pq the ProductQuantization to use
98-
* @param ordinalsMapping the graph ordinals to RAVV mapping
99-
* @param ravv the RandomAccessVectorValues to encode
100-
* @param simdExecutor the ForkJoinPool to use for SIMD operations
101-
* @return the PQVectors instance
102-
*/
103-
public static ImmutablePQVectors encodeAndBuild(ProductQuantization pq, int[] ordinalsMapping, RandomAccessVectorValues ravv, ForkJoinPool simdExecutor) {
104-
IntUnaryOperator mapper = (ordinal) -> ordinalsMapping[ordinal];
105-
return encodeAndBuild(pq, ordinalsMapping.length, mapper, ravv, simdExecutor);
106-
}
107-
10893
/**
10994
* Build a PQVectors instance from the given RandomAccessVectorValues. The vectors are encoded in parallel
11095
* and split into chunks to avoid exceeding the maximum array size.

0 commit comments

Comments
 (0)