writeStoredMeta
Writes out the docsWithField and ordToDoc mapping to the outputMeta and vectorData respectively. This is in adherence to the Lucene95HnswVectorsFormat.
Within outputMeta the format is as follows:
int8 if equals to -2, empty - no vector values. If equals to -1, dense – all documents have values for a field. If equals to 0, sparse – some documents missing values.
DocIds were encoded by IndexedDISI.writeBitSet
OrdToDoc was encoded by org.gnit.lucenekmp.util.packed.DirectMonotonicWriter, note that only in sparse case
Within the vectorData the format is as follows:
DocIds encoded by IndexedDISI.writeBitSet, note that only in sparse case
OrdToDoc was encoded by org.gnit.lucenekmp.util.packed.DirectMonotonicWriter, note that only in sparse case
Parameters
the outputMeta
the vectorData
the count of docs with vectors
the maxDoc for the index
the docs contaiting a vector field
Throws
thrown when writing data fails to either output