Class KnnFieldVectorsWriter<T>

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected KnnFieldVectorsWriter()
      Sole constructor
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract void addValue​(int docID, T vectorValue)
      Add new docID with its vector value to the given field for indexing.
      abstract T copyValue​(T vectorValue)
      Used to copy values being indexed to internal storage.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KnnFieldVectorsWriter

        protected KnnFieldVectorsWriter()
        Sole constructor
    • Method Detail

      • addValue

        public abstract void addValue​(int docID,
                                      T vectorValue)
                               throws java.io.IOException
        Add new docID with its vector value to the given field for indexing. Doc IDs must be added in increasing order.
        Throws:
        java.io.IOException
      • copyValue

        public abstract T copyValue​(T vectorValue)
        Used to copy values being indexed to internal storage.
        Parameters:
        vectorValue - an array containing the vector value to add
        Returns:
        a copy of the value; a new array