Skip to content

Commit 5a2c320

Browse files
committed
rename var
1 parent af2180b commit 5a2c320

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/src/main/java/org/elasticsearch/index/codec/vectors/DefaultIVFVectorsReader.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ CentroidQueryScorer getCentroidScorer(FieldInfo fieldInfo, int numCentroids, Ind
6969
int currentCentroid = -1;
7070
long postingListOffset;
7171
private final float[] centroidCorrectiveValues = new float[3];
72-
private final long rawCentroidsOffset = (long) numCentroids * (fieldInfo.getVectorDimension() + 3 * Float.BYTES + Short.BYTES);
72+
private final long quantizeCentroidsLength = (long) numCentroids * (fieldInfo.getVectorDimension() + 3 * Float.BYTES
73+
+ Short.BYTES);
7374

7475
@Override
7576
public int size() {
@@ -79,7 +80,7 @@ public int size() {
7980
@Override
8081
public long postingListOffset(int centroidOrdinal) throws IOException {
8182
if (centroidOrdinal != currentCentroid) {
82-
centroids.seek(rawCentroidsOffset + (long) Long.BYTES * centroidOrdinal);
83+
centroids.seek(quantizeCentroidsLength + (long) Long.BYTES * centroidOrdinal);
8384
postingListOffset = centroids.readLong();
8485
currentCentroid = centroidOrdinal;
8586
}

0 commit comments

Comments
 (0)