Class FlatVectorsWriter

    • Field Detail

      • vectorsScorer

        protected final FlatVectorsScorer vectorsScorer
        Scorer for flat vectors
    • Constructor Detail

      • FlatVectorsWriter

        protected FlatVectorsWriter​(FlatVectorsScorer vectorsScorer)
        Sole constructor
    • Method Detail

      • mergeOneFieldToIndex

        public abstract CloseableRandomVectorScorerSupplier mergeOneFieldToIndex​(FieldInfo fieldInfo,
                                                                                 MergeState mergeState)
                                                                          throws IOException
        Write the field for merging, providing a scorer over the newly merged flat vectors. This way any additional merging logic can be implemented by the user of this class.
        Parameters:
        fieldInfo - fieldInfo of the field to merge
        mergeState - mergeState of the segments to merge
        Returns:
        a scorer over the newly merged flat vectors, which should be closed as it holds a temporary file handle to read over the newly merged vectors
        Throws:
        IOException - if an I/O error occurs when merging