Skip to content

Commit 47543be

Browse files
committed
add comments
1 parent ee77cee commit 47543be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/src/main/java/org/elasticsearch/index/codec/vectors/es818/DirectIOLucene99FlatVectorsReader.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public DirectIOLucene99FlatVectorsReader(SegmentReadState state, FlatVectorsScor
9393
versionMeta,
9494
DirectIOLucene99FlatVectorsFormat.VECTOR_DATA_EXTENSION,
9595
DirectIOLucene99FlatVectorsFormat.VECTOR_DATA_CODEC_NAME,
96-
// We use sequential access since this input is only used for merging
96+
// We use sequential access here since this input is only used for merging
9797
USE_DIRECT_IO ? state.context.withReadAdvice(ReadAdvice.SEQUENTIAL) : state.context,
9898
false
9999
);
@@ -108,9 +108,9 @@ public DirectIOLucene99FlatVectorsReader(SegmentReadState state, FlatVectorsScor
108108
}
109109

110110
/**
111-
* Returns a {@link DirectIOLucene99FlatVectorsReader} that switch the raw vector data to use
112-
* the provided {@link IndexInput}.
113-
* This is useful for merges since we want to switch from directIO to sequential reads.
111+
* Returns a {@link DirectIOLucene99FlatVectorsReader} with the raw vector data
112+
* redirected to use the provided {@link IndexInput}.
113+
* This is useful during merges, where we need to switch from direct I/O to sequential reads.
114114
*/
115115
private DirectIOLucene99FlatVectorsReader(DirectIOLucene99FlatVectorsReader clone, IndexInput vectorData) {
116116
super(clone.vectorScorer);

0 commit comments

Comments
 (0)