Writes quantized vector values and metadata to index segments in the format for Lucene 10.4.
<init>(org.apache.lucene.index.SegmentWriteState state, org.apache.lucene.codecs.lucene104.Lucene104ScalarQuantizedVectorsFormat.ScalarEncoding encoding, org.apache.lucene.codecs.hnsw.FlatVectorsWriter rawVectorDelegate, org.apache.lucene.codecs.lucene104.Lucene104ScalarQuantizedVectorScorer vectorsScorer)Sole constructor
addField(org.apache.lucene.index.FieldInfo fieldInfo)close()finish()flush(int maxDoc, org.apache.lucene.index.Sorter.DocMap sortMap)mergeOneField(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.index.MergeState mergeState)mergeOneFieldToIndex(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.index.MergeState mergeState)ramBytesUsed()| field | type | note |
|---|---|---|
| NULL_ACCOUNTABLE | Accountable | An accountable that always returns 0 |
Returns nested resources of this class. The result should be a point-in-time snapshot (to avoid race conditions).
Merges the segment vectors for all fields. This default implementation delegates to #mergeOneField, passing a KnnVectorsReader that combines the vector values and ignores
deleted documents.
Returns: the FlatVectorsScorer for this reader.