File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
lucene/core/src/java/org/apache/lucene/codecs/lucene104 Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 5858import org .apache .lucene .util .hnsw .UpdateableRandomVectorScorer ;
5959import 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+ */
6266public 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 ,
You can’t perform that action at this time.
0 commit comments