Class KnnVectorsWriter

    • Constructor Detail

      • KnnVectorsWriter

        protected KnnVectorsWriter()
        Sole constructor
    • Method Detail

      • addField

        public abstract KnnFieldVectorsWriter<?> addField​(FieldInfo fieldInfo)
                                                   throws java.io.IOException
        Add new field for indexing
        Throws:
        java.io.IOException
      • flush

        public abstract void flush​(int maxDoc,
                                   Sorter.DocMap sortMap)
                            throws java.io.IOException
        Flush all buffered data on disk *
        Throws:
        java.io.IOException
      • mergeOneField

        public void mergeOneField​(FieldInfo fieldInfo,
                                  MergeState mergeState)
                           throws java.io.IOException
        Write field for merging
        Throws:
        java.io.IOException
      • finish

        public abstract void finish()
                             throws java.io.IOException
        Called once at the end before close
        Throws:
        java.io.IOException