Skip to content

Commit 604ed2f

Browse files
committed
Consolidate parameter order
1 parent 1de5bd8 commit 604ed2f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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/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)