Skip to content

Commit e54d4c6

Browse files
committed
Consolidate parameter order
1 parent 1de5bd8 commit e54d4c6

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

server/src/main/java/module-info.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,6 @@
464464
org.elasticsearch.index.codec.vectors.es818.ES818HnswBinaryQuantizedVectorsFormat,
465465
org.elasticsearch.index.codec.vectors.diskbbq.ES920DiskBBQVectorsFormat,
466466
org.elasticsearch.index.codec.vectors.diskbbq.next.ESNextDiskBBQVectorsFormat,
467-
org.elasticsearch.index.codec.vectors.es93.ES93GenericFlatVectorsFormat,
468467
org.elasticsearch.index.codec.vectors.es93.ES93BinaryQuantizedVectorsFormat,
469468
org.elasticsearch.index.codec.vectors.es93.ES93HnswBinaryQuantizedVectorsFormat;
470469

server/src/main/java/org/elasticsearch/index/codec/vectors/es93/ES93HnswBinaryQuantizedVectorsFormat.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ public ES93HnswBinaryQuantizedVectorsFormat() {
4747
/**
4848
* Constructs a format using the given graph construction parameters.
4949
*
50-
* @param maxConn the maximum number of connections to a node in the HNSW graph
51-
* @param beamWidth the size of the queue maintained during graph construction.
50+
* @param maxConn the maximum number of connections to a node in the HNSW graph
51+
* @param beamWidth the size of the queue maintained during graph construction.
5252
* @param useDirectIO whether to use direct IO when reading raw vectors
5353
*/
54-
public ES93HnswBinaryQuantizedVectorsFormat(int maxConn, int beamWidth, boolean useDirectIO, boolean useBFloat16) {
54+
public ES93HnswBinaryQuantizedVectorsFormat(int maxConn, int beamWidth, boolean useBFloat16, boolean useDirectIO) {
5555
super(NAME, maxConn, beamWidth);
5656
flatVectorsFormat = new ES93BinaryQuantizedVectorsFormat(useBFloat16, useDirectIO);
5757
}

server/src/main/resources/META-INF/services/org.apache.lucene.codecs.KnnVectorsFormat

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ org.elasticsearch.index.codec.vectors.es818.ES818BinaryQuantizedVectorsFormat
99
org.elasticsearch.index.codec.vectors.es818.ES818HnswBinaryQuantizedVectorsFormat
1010
org.elasticsearch.index.codec.vectors.diskbbq.ES920DiskBBQVectorsFormat
1111
org.elasticsearch.index.codec.vectors.diskbbq.next.ESNextDiskBBQVectorsFormat
12-
org.elasticsearch.index.codec.vectors.es93.ES93GenericFlatVectorsFormat
1312
org.elasticsearch.index.codec.vectors.es93.ES93BinaryQuantizedVectorsFormat
1413
org.elasticsearch.index.codec.vectors.es93.ES93HnswBinaryQuantizedVectorsFormat

server/src/test/java/org/elasticsearch/index/codec/vectors/es93/ES93HnswBinaryQuantizedVectorsFormatTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ boolean useBFloat16() {
7373

7474
@Override
7575
public void setUp() throws Exception {
76-
format = new ES93HnswBinaryQuantizedVectorsFormat(DEFAULT_MAX_CONN, DEFAULT_BEAM_WIDTH, random().nextBoolean(), useBFloat16());
76+
format = new ES93HnswBinaryQuantizedVectorsFormat(DEFAULT_MAX_CONN, DEFAULT_BEAM_WIDTH, useBFloat16(), random().nextBoolean());
7777
super.setUp();
7878
}
7979

0 commit comments

Comments
 (0)