Skip to content

Commit e270706

Browse files
authored
Tidy up Lucene104ScalarQuantizedVectorsWriter (#15357)
1 parent 474f848 commit e270706

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lucene/core/src/java/org/apache/lucene/codecs/lucene104/Lucene104ScalarQuantizedVectorsWriter.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@
5959
import org.apache.lucene.util.hnsw.UpdateableRandomVectorScorer;
6060
import org.apache.lucene.util.quantization.OptimizedScalarQuantizer;
6161

62-
/** Copied from Lucene, replace with Lucene's implementation sometime after Lucene 10 */
62+
/**
63+
* Writes quantized vector values and metadata to index segments in the format for Lucene 10.4.
64+
*
65+
* @lucene.experimental
66+
*/
6367
public class Lucene104ScalarQuantizedVectorsWriter extends FlatVectorsWriter {
6468
private static final long SHALLOW_RAM_BYTES_USED =
6569
shallowSizeOfInstance(Lucene104ScalarQuantizedVectorsWriter.class);
@@ -72,12 +76,8 @@ public class Lucene104ScalarQuantizedVectorsWriter extends FlatVectorsWriter {
7276
private final Lucene104ScalarQuantizedVectorScorer vectorsScorer;
7377
private boolean finished;
7478

75-
/**
76-
* Sole constructor
77-
*
78-
* @param vectorsScorer the scorer to use for scoring vectors
79-
*/
80-
protected Lucene104ScalarQuantizedVectorsWriter(
79+
/** Sole constructor */
80+
public Lucene104ScalarQuantizedVectorsWriter(
8181
SegmentWriteState state,
8282
ScalarEncoding encoding,
8383
FlatVectorsWriter rawVectorDelegate,

0 commit comments

Comments
 (0)