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 5959import org .apache .lucene .util .hnsw .UpdateableRandomVectorScorer ;
6060import 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+ */
6367public 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 ,
You can’t perform that action at this time.
0 commit comments