Skip to content

Commit 3105b2f

Browse files
committed
Tidy up Lucene104ScalarQuantizedVectorsWriter (#15357)
1 parent 4633b88 commit 3105b2f

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
@@ -58,7 +58,11 @@
5858
import org.apache.lucene.util.hnsw.UpdateableRandomVectorScorer;
5959
import org.apache.lucene.util.quantization.OptimizedScalarQuantizer;
6060

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

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

0 commit comments

Comments
 (0)