Skip to content

Commit dd35c64

Browse files
committed
Adjust the vector ID based on the last change on itr.
1 parent 091b3e0 commit dd35c64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/utils/val/siftBigANN.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static String convertToBase64Bytes(float[] floats) {
6363
}
6464

6565
public Object next(String key) throws IOException {
66-
int id = Integer.parseInt(key.split("-")[1]) - 1 + this.ws.mutated;
66+
int id = Integer.parseInt(key.split("-")[1]) + this.ws.mutated;
6767
float[] vector = new float[128];
6868
if(this.mutateCount > 0) {
6969
byte[] byteArray = new byte[(int) 4];

0 commit comments

Comments
 (0)